public class ImmutablePair<K,V> extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
ImmutablePair() |
| Modifier and Type | Method and Description |
|---|---|
static <T,E> ImmutablePair<T,E> |
create(T key,
E value) |
K |
getFirst() |
K |
getLeft() |
V |
getRight() |
V |
getSecond() |
static <T,E> ImmutablePair<T,E> |
makePair(T key,
E value) |
static <T,E> ImmutablePair<T,E> |
of(T key,
E value) |
static <T,E> ImmutablePair<T,E> |
pairOf(T key,
E value) |
public K getLeft()
public V getRight()
public K getFirst()
public V getSecond()
public static <T,E> ImmutablePair<T,E> of(T key, E value)
public static <T,E> ImmutablePair<T,E> makePair(T key, E value)
public static <T,E> ImmutablePair<T,E> create(T key, E value)
public static <T,E> ImmutablePair<T,E> pairOf(T key, E value)
Copyright © 2021. All rights reserved.