Class ByteCaseFunction<V>
- java.lang.Object
-
- org.eclipse.collections.impl.block.function.primitive.ByteCaseFunction<V>
-
- All Implemented Interfaces:
java.io.Serializable,ByteToObjectFunction<V>
public class ByteCaseFunction<V> extends java.lang.Object implements ByteToObjectFunction<V>
This file was automatically generated from template file primitiveCaseFunction.stg.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ByteToObjectFunction<? extends V>defaultFunctionprivate MutableList<Pair<BytePredicate,ByteToObjectFunction<? extends V>>>predicateFunctionsprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ByteCaseFunction()ByteCaseFunction(ByteToObjectFunction<? extends V> newDefaultFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteCaseFunction<V>addCase(BytePredicate predicate, ByteToObjectFunction<? extends V> function)ByteCaseFunction<V>setDefault(ByteToObjectFunction<? extends V> function)java.lang.StringtoString()VvalueOf(byte argument)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
predicateFunctions
private final MutableList<Pair<BytePredicate,ByteToObjectFunction<? extends V>>> predicateFunctions
-
defaultFunction
private ByteToObjectFunction<? extends V> defaultFunction
-
-
Constructor Detail
-
ByteCaseFunction
public ByteCaseFunction()
-
ByteCaseFunction
public ByteCaseFunction(ByteToObjectFunction<? extends V> newDefaultFunction)
-
-
Method Detail
-
addCase
public ByteCaseFunction<V> addCase(BytePredicate predicate, ByteToObjectFunction<? extends V> function)
-
setDefault
public ByteCaseFunction<V> setDefault(ByteToObjectFunction<? extends V> function)
-
valueOf
public V valueOf(byte argument)
- Specified by:
valueOfin interfaceByteToObjectFunction<V>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-