K - the type of first element of the PairV - the type of second element of the Pairpublic class Pair<K,V> extends Object implements Serializable
public static <K,V> Pair<K,V> of(K key, V value)
K - the first element typeV - the second element typekey - the first elementvalue - the second elementpublic K getKey()
public V getValue()
public K getLeft()
public V getRight()
public K getFirst()
public V getSecond()
Copyright © 2022. All rights reserved.