Package org.javimmutable.collections
Class Temp
java.lang.Object
org.javimmutable.collections.Temp
Collection of useful temporary object classes. These can be useful as simple temporary arguments
to lambda expressions like reduce(). These classes have public fields and are not intended to
be used for any sort of long lived objects and certainly not as part of a data model. However
they can serve as a useful way to pass a few temporary values to a reduce method or provide
a simple set of working variables that a lambda can update (working around the effectively
final restriction).
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Temp.Int1
intVar
(int a) static <A> Temp.Val1
<A> val
(A a) static <A,
B> Temp.Val2 <A, B> val
(A a, B b) static <A,
B, C> Temp.Val3 <A, B, C> val
(A a, B b, C c) static <A,
B, C, D>
Temp.Val4<A, B, C, D> val
(A a, B b, C c, D d) static <W,
X, Y, Z>
Temp.Var4<W, X, Y, Z> var
(W w, X x, Y y, Z z) static <X> Temp.Var1
<X> var
(X x) static <X,
Y> Temp.Var2 <X, Y> var
(X x, Y y) static <X,
Y, Z> Temp.Var3 <X, Y, Z> var
(X x, Y y, Z z)
-
Constructor Details
-
Temp
public Temp()
-
-
Method Details
-
val
-
val
-
val
-
val
-
var
-
var
-
var
-
var
-
intVar
-