Serializable
, Function<T,V>
, Function<T,V>
public class CaseFunction<T extends Comparable<? super T>,V> extends 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) |
|
String |
toString() |
|
V |
valueOf(T argument) |
Copyright © 2004–2019. All rights reserved.