Package org.nd4j.common.primitives
Class Pair<K,V>
- java.lang.Object
-
- org.nd4j.common.primitives.Pair<K,V>
-
- All Implemented Interfaces:
Serializable
public class Pair<K,V> extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Pair()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T,E>
Pair<T,E>create(T key, E value)static <T> Pair<T,T>fromArray(T[] arr)KgetFirst()KgetLeft()VgetRight()VgetSecond()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)voidsetFirst(K first)voidsetSecond(V second)StringtoString()
-
-
-
Method Detail
-
getLeft
public K getLeft()
-
getRight
public V getRight()
-
getFirst
public K getFirst()
-
getSecond
public V getSecond()
-
setFirst
public void setFirst(K first)
-
setSecond
public void setSecond(V second)
-
of
public static <T,E> Pair<T,E> of(T key, E value)
-
makePair
public static <T,E> Pair<T,E> makePair(T key, E value)
-
create
public static <T,E> Pair<T,E> create(T key, E value)
-
pairOf
public static <T,E> Pair<T,E> pairOf(T key, E value)
-
fromArray
public static <T> Pair<T,T> fromArray(T[] arr)
-
-