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