org.openstreetmap.josm.tools
Class Pair<A,B>

java.lang.Object
  extended by org.openstreetmap.josm.tools.Pair<A,B>

public final class Pair<A,B>
extends java.lang.Object

A pair.


Field Summary
 A a
           
 B b
           
 
Constructor Summary
Pair(A a, B b)
           
 
Method Summary
static
<U,V> Pair<U,V>
create(U u, V v)
           
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
static
<T> Pair<T,T>
sort(Pair<T,T> p)
           
static
<T> java.util.ArrayList<T>
toArrayList(Pair<T,T> p)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

a

public A a

b

public B b
Constructor Detail

Pair

public Pair(A a,
            B b)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

toArrayList

public static <T> java.util.ArrayList<T> toArrayList(Pair<T,T> p)

sort

public static <T> Pair<T,T> sort(Pair<T,T> p)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

create

public static <U,V> Pair<U,V> create(U u,
                                     V v)


JOSM