F
- The type of the first item.S
- The type of the first item.public class Pair<F,S> extends Object
Modifier | Constructor and Description |
---|---|
protected |
Pair(F first,
S second)
Constructor for Pair.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Equality.
|
F |
getFirst()
Accessor for the first item.
|
S |
getSecond()
Accessor for the second item.
|
int |
hashCode()
Hash code.
|
static <F,S> Pair<F,S> |
of(F first,
S second)
Type safe factory method.
|
String |
toString()
Describe ourself.
|
public static <F,S> Pair<F,S> of(F first, S second)
F
- The type of the first item.S
- The type of the first item.first
- The first item.second
- The second item.public F getFirst()
public S getSecond()
public int hashCode()
public boolean equals(Object o)
Copyright © 2000-2014. All Rights Reserved.