Package com.hazelcast.function
Class Functions
java.lang.Object
com.hazelcast.function.Functions
Factory methods for several common functions.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K> FunctionEx<Map.Entry<K,
?>, K> entryKey()
Returns a function that extracts the key of aMap.Entry
.static <V> FunctionEx<Map.Entry<?,
V>, V> Returns a function that extracts the value of aMap.Entry
.static <T> FunctionEx<T,
T> Synonym forFunctionEx.identity()
, to be used as a projection function (e.g., key extractor).
-
Method Details
-
wholeItem
Synonym forFunctionEx.identity()
, to be used as a projection function (e.g., key extractor).- Type Parameters:
T
- the type of the input and output objects to the function
-
entryKey
Returns a function that extracts the key of aMap.Entry
.- Type Parameters:
K
- type of entry's key
-
entryValue
Returns a function that extracts the value of aMap.Entry
.- Type Parameters:
V
- type of entry's value
-