ral.util
Class FixedPair<FROM,TO>

java.lang.Object
  extended by ral.util.FixedPair<FROM,TO>
All Implemented Interfaces:
Pair<FROM,TO>

public final class FixedPair<FROM,TO>
extends java.lang.Object
implements Pair<FROM,TO>


Constructor Summary
FixedPair(FROM x, TO y)
           
 
Method Summary
 Pair<FROM,TO> clone(FROM f, TO t)
           
 boolean equals(java.lang.Object o)
           
 FROM from()
           
 int hashCode()
           
 TO to()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedPair

public FixedPair(FROM x,
                 TO y)
Method Detail

from

public final FROM from()
Specified by:
from in interface Pair<FROM,TO>

to

public final TO to()
Specified by:
to in interface Pair<FROM,TO>

hashCode

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

equals

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

clone

public Pair<FROM,TO> clone(FROM f,
                           TO t)
Specified by:
clone in interface Pair<FROM,TO>