-
-
Field Summary
Fields
| Modifier and Type |
Field and Description |
protected K |
key |
protected V |
value |
-
Constructor Summary
Constructors
| Constructor and Description |
Pair() |
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
| Modifier and Type |
Method and Description |
static <T,E> Pair<T,E> |
create(T key,
E value) |
static <T> Pair<T,T> |
fromArray(T[] arr) |
K |
getFirst() |
K |
getLeft() |
V |
getRight() |
V |
getSecond() |
static <T,E> Pair<T,E> |
makePair(T key,
E value) |
static <T,E> Pair<T,E> |
of(T key,
E value) |
static <T,E> Pair<T,E> |
pairOf(T key,
E value) |
void |
setFirst(K first) |
void |
setSecond(V second) |
String |
toString() |
-
-
Method Detail
-
getLeft
public K getLeft()
-
getRight
public V getRight()
-
getFirst
public K getFirst()
-
getSecond
public V getSecond()
Copyright © 2022. All rights reserved.