java.io.Serializable
, java.util.function.Function<T,V>
, Function<T,V>
public class CaseFunction<T extends java.lang.Comparable<? super T>,V> extends java.lang.Object implements Function<T,V>
Constructor | Description |
---|---|
CaseFunction() |
|
CaseFunction(Function<? super T,? extends V> newDefaultFunction) |
Modifier and Type | Method | Description |
---|---|---|
CaseFunction<T,V> |
addCase(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
|
CaseFunction<T,V> |
setDefault(Function<? super T,? extends V> function) |
|
java.lang.String |
toString() |
|
V |
valueOf(T argument) |
Copyright © 2004–2017. All rights reserved.