org.bridj.util
Class Pair<U,V>

java.lang.Object
  extended by org.bridj.util.Pair<U,V>
All Implemented Interfaces:
Comparable<Pair<U,V>>, Map.Entry<U,V>

public class Pair<U,V>
extends Object
implements Comparable<Pair<U,V>>, Map.Entry<U,V>


Constructor Summary
Pair()
           
Pair(U first, V second)
           
 
Method Summary
 int compareTo(Pair<U,V> o)
           
 boolean equals(Object obj)
           
 U getFirst()
           
 U getKey()
           
 V getSecond()
           
 V getValue()
           
 int hashCode()
           
 boolean isEmpty()
           
 boolean isFull()
           
 void setFirst(U first)
           
 void setSecond(V second)
           
 V setValue(V value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(U first,
            V second)

Pair

public Pair()
Method Detail

getFirst

public U getFirst()

getSecond

public V getSecond()

setFirst

public void setFirst(U first)

setSecond

public void setSecond(V second)

compareTo

public int compareTo(Pair<U,V> o)
Specified by:
compareTo in interface Comparable<Pair<U,V>>

toString

public String toString()
Overrides:
toString in class Object

getKey

public U getKey()
Specified by:
getKey in interface Map.Entry<U,V>

getValue

public V getValue()
Specified by:
getValue in interface Map.Entry<U,V>

setValue

public V setValue(V value)
Specified by:
setValue in interface Map.Entry<U,V>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry<U,V>
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Map.Entry<U,V>
Overrides:
equals in class Object

isFull

public boolean isFull()

isEmpty

public boolean isEmpty()


Copyright © 2009-2012. All Rights Reserved.