T1
- the type of the first value
of the pair.T2
- the type of the other value
of the pair.public abstract class Pair<T1,T2> extends Object
Modifier and Type | Method and Description |
---|---|
static <T1,T2> Pair<T1,T2> |
empty() |
boolean |
equals(Object obj) |
abstract T1 |
first() |
int |
hashCode() |
static <T1,T2> Pair<T1,T2> |
of(T1 first,
T2 other)
Alias of
pair(Object, Object) . |
abstract T2 |
other() |
static <T1,T2> Pair<T1,T2> |
pair(T1 first,
T2 other)
Create a new pair of objects.
|
String |
toString() |
public static <T1,T2> Pair<T1,T2> empty()
public static <T1,T2> Pair<T1,T2> pair(T1 first, T2 other)
T1
- the type of the first object in the pairT2
- the type of the second object in the pairfirst
- the first object in the pair.other
- the other object in the pair.public static <T1,T2> Pair<T1,T2> of(T1 first, T2 other)
pair(Object, Object)
.T1
- the type of the first object in the pairT2
- the type of the second object in the pairfirst
- the first object in the pair.other
- the other object in the pair.public abstract T1 first()
public abstract T2 other()
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.