Class CaseFunction<T extends java.lang.Comparable<? super T>,V>
- java.lang.Object
-
- org.eclipse.collections.impl.block.function.CaseFunction<T,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Function<T,V>
,Function<T,V>
public class CaseFunction<T extends java.lang.Comparable<? super T>,V> extends java.lang.Object implements Function<T,V>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Function<? super T,? extends V>
defaultFunction
private MutableList<Pair<Predicate<? super T>,Function<? super T,? extends V>>>
predicateFunctions
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CaseFunction()
CaseFunction(Function<? super T,? extends V> newDefaultFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CaseFunction<T,V>
addCase(Predicate<? super T> predicate, Function<? super T,? extends V> function)
CaseFunction<T,V>
setDefault(Function<? super T,? extends V> function)
java.lang.String
toString()
V
valueOf(T argument)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
predicateFunctions
private final MutableList<Pair<Predicate<? super T extends java.lang.Comparable<? super T>>,Function<? super T extends java.lang.Comparable<? super T>,? extends V>>> predicateFunctions
-
-