Class Pair<K,​V>

    • Field Detail

      • key

        protected K key
      • value

        protected V value
    • Constructor Detail

      • Pair

        public Pair()
    • Method Detail

      • getLeft

        public K getLeft()
      • getRight

        public V getRight()
      • getFirst

        public K getFirst()
      • getSecond

        public V getSecond()
      • setFirst

        public void setFirst​(K first)
      • setSecond

        public void setSecond​(V second)
      • of

        public static <T,​E> Pair<T,​E> of​(T key,
                                                     E value)
      • makePair

        public static <T,​E> Pair<T,​E> makePair​(T key,
                                                           E value)
      • create

        public static <T,​E> Pair<T,​E> create​(T key,
                                                         E value)
      • pairOf

        public static <T,​E> Pair<T,​E> pairOf​(T key,
                                                         E value)
      • fromArray

        public static <T> Pair<T,​T> fromArray​(T[] arr)