aQute.libg.tuple
Class Pair<A,B>

java.lang.Object
  extended by 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)
           
 
Method Summary
 Pair<A,B> clone()
           
 boolean equals(Object obj)
           
 A getFirst()
           
 B getSecond()
           
 int hashCode()
           
static
<A,B> Pair<A,B>
newInstance(A first, B second)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(A first,
            B second)
Method Detail

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.