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>
defaultFunction
private MutableList<Pair<BytePredicate,ByteToObjectFunction<? extends V>>>
predicateFunctions
private static long
serialVersionUID
-
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.String
toString()
V
valueOf(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:
valueOf
in interfaceByteToObjectFunction<V>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-