Class Functions

java.lang.Object
com.hazelcast.function.Functions

public final class Functions extends Object
Factory methods for several common functions.
Since:
4.0
  • Method Details

    • wholeItem

      @Nonnull public static <T> FunctionEx<T,T> wholeItem()
      Synonym for FunctionEx.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

      @Nonnull public static <K> FunctionEx<Map.Entry<K,?>,K> entryKey()
      Returns a function that extracts the key of a Map.Entry.
      Type Parameters:
      K - type of entry's key
    • entryValue

      @Nonnull public static <V> FunctionEx<Map.Entry<?,V>,V> entryValue()
      Returns a function that extracts the value of a Map.Entry.
      Type Parameters:
      V - type of entry's value