Package: java.util

## [Java] Interface Map.Entry

-     public static interface Map.Entry

  GDK enhancements for Entry.

  displayName:
    Entry
  receiverFqcn:
    java.util.Map.Entry

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `<K, V>` | `public Tuple2<K, V>` | `toTuple()` Create a Tuple from the key and value of this Map Entry.

- - ### Method Detail

    - #### <K, V> public Tuple2<K, V> toTuple()

      Create a Tuple from the key and value of this Map Entry.

           assert [a:1, b:2, c:3]*.toTuple().toString() == '[[a, 1], [b, 2], [c, 3]]'
           assert [a:1, b:2, c:3].findAll(e -> e.toTuple().sum() != 'b2') == [a:1, c:3]

      Returns:
        a tuple containing the key and value.
      Since:
        5.0.0