public class CaseFunction<T extends java.lang.Comparable<? super T>,V>
extends java.lang.Object
implements com.gs.collections.api.block.function.Function<T,V>
| Constructor and Description |
|---|
CaseFunction() |
CaseFunction(com.gs.collections.api.block.function.Function<? super T,? extends V> newDefaultFunction) |
| Modifier and Type | Method and Description |
|---|---|
CaseFunction<T,V> |
addCase(com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
CaseFunction<T,V> |
setDefault(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
java.lang.String |
toString() |
V |
valueOf(T argument) |
public CaseFunction<T,V> addCase(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public CaseFunction<T,V> setDefault(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public java.lang.String toString()
toString in class java.lang.Object