- java.lang.Object
-
- aeonics.util.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
-
-
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
-
-
-
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 classjava.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
-
-