Module aeonics.core
Package aeonics.util

Class Tuples.Single<A>

  • Type Parameters:
    A - the value type
    Enclosing class:
    Tuples

    public static class Tuples.Single<A>
    extends java.lang.Object
    A wrapper for one value
    • Field Summary

      Fields 
      Modifier and Type Field Description
      A a
      The wrapped value
    • Constructor Summary

      Constructors 
      Constructor Description
      Single​(A a)
      Creates a one-value wrapper
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      static <X> Tuples.Single<X> of​(X a)
      Creates a new one-value wrapper
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • a

        public volatile A a
        The wrapped value
    • Constructor Detail

      • Single

        public Single​(A a)
        Creates a one-value wrapper
        Parameters:
        a - the value
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • of

        public static <X> Tuples.Single<X> of​(X a)
        Creates a new one-value wrapper
        Type Parameters:
        X - the value type
        Parameters:
        a - the value
        Returns:
        a new one-value wrapper