org.bridj.util
Class Pair<U,V>
java.lang.Object
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)
|
Pair
public Pair(U first,
V second)
Pair
public Pair()
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.