java.io.Serializable
, ShortToObjectFunction<V>
public class ShortCaseFunction<V> extends java.lang.Object implements ShortToObjectFunction<V>
Constructor | Description |
---|---|
ShortCaseFunction() |
|
ShortCaseFunction(ShortToObjectFunction<? extends V> newDefaultFunction) |
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) |
public ShortCaseFunction()
public ShortCaseFunction(ShortToObjectFunction<? extends V> newDefaultFunction)
public ShortCaseFunction<V> addCase(ShortPredicate predicate, ShortToObjectFunction<? extends V> function)
public ShortCaseFunction<V> setDefault(ShortToObjectFunction<? extends V> function)
public V valueOf(short argument)
valueOf
in interface ShortToObjectFunction<V>
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2004–2017. All rights reserved.