com.hazelcast.jet.function

## Class Functions

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

-     public final class Functions
      extends Object

  Factory methods for several common functions.
  Since:
    3.0

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <K> FunctionEx<Map.Entry<K,?>,K>` | `entryKey()` Returns a function that extracts the key of a `Map.Entry`.
    `static <V> FunctionEx<Map.Entry<?,V>,V>` | `entryValue()` Returns a function that extracts the value of a `Map.Entry`.
    `static <T> FunctionEx<T,T>` | `wholeItem()` Synonym for `FunctionEx.identity()`, to be used as a projection function (e.g., key extractor).

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### wholeItem

          @Nonnull
          public static <T> FunctionEx<T,T> wholeItem()

      Synonym for `FunctionEx.identity()`, to be used as a projection function (e.g., key extractor).

    - #### 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

Copyright © 2019. All rights reserved.