Class ImmutablePair<K,​V>

    • Field Detail

      • key

        protected K key
      • value

        protected V value
    • Constructor Detail

      • ImmutablePair

        protected ImmutablePair()
    • Method Detail

      • getLeft

        public K getLeft()
      • getRight

        public V getRight()
      • getFirst

        public K getFirst()
      • getSecond

        public V getSecond()
      • of

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

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

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

        public static <T,​E> ImmutablePair<T,​E> pairOf​(T key,
                                                                  E value)