Class API.Pair

  • Enclosing class:
    API

    public static class API.Pair
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <K,​V>
      java.util.Map.Entry<K,​V>
      of​(K key, V value)
      This method creates a Key/Value pair
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Pair

        public Pair()
    • Method Detail

      • of

        public static <K,​V> java.util.Map.Entry<K,​V> of​(K key,
                                                                    V value)
        This method creates a Key/Value pair
        Returns:
        A new map entry with the configured key and value