-
-
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) |
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) |
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getLeft
public K getLeft()
-
getRight
public V getRight()
-
getFirst
public K getFirst()
-
getSecond
public V getSecond()
Copyright © 2017. All rights reserved.