aQute.libg.tuple
Class Pair<A,B>
java.lang.Object
aQute.libg.tuple.Pair<A,B>
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- ComparablePair
public class Pair<A,B>
- extends Object
- implements Serializable, Cloneable
- See Also:
- Serialized Form
|
Constructor Summary |
Pair(A first,
B second)
|
Pair
public Pair(A first,
B second)
newInstance
public static <A,B> Pair<A,B> newInstance(A first,
B second)
getFirst
public A getFirst()
getSecond
public B getSecond()
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
clone
public Pair<A,B> clone()
- Overrides:
clone in class Object
Copyright © 2014 aQute SARL. All rights reserved.