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