rcf.core.util.groups
Class PairSwapAdapter<A,B>
java.lang.Object
rcf.core.util.adapter.AbstractTypeAdapter<PairInterface<A,B>,PairInterface<B,A>>
rcf.core.util.groups.PairSwapAdapter<A,B>
- Type Parameters:
A - A type argument of the input and output pairs.B - A type argument of the input and output pairs.
- All Implemented Interfaces:
- rcf.core.util.adapter.TypeAdapter<PairInterface<A,B>,PairInterface<B,A>>, rcf.core.util.adapter.TypeAdapterA<PairInterface<A,B>,PairInterface<B,A>>, rcf.core.util.adapter.TypeAdapterB<PairInterface<A,B>,PairInterface<B,A>>
@Revision(value="$Revision: 1.3 $",
date="$Date: 2006/11/14 18:56:27 $",
tag="$Name: $")
public class PairSwapAdapter<A,B>- extends rcf.core.util.adapter.AbstractTypeAdapter<PairInterface<A,B>,PairInterface<B,A>>
TODO: Javadoc
TODO: Unit tests, Code review, Javadoc review, Seal/Finalize
- Version:
- $Revision: 1.3 $
- Author:
- Greg Gibeling
| Fields inherited from class rcf.core.util.adapter.AbstractTypeAdapter |
adapterInverse |
|
Constructor Summary |
protected |
PairSwapAdapter()
Default constructor, protected to enforce singleton instantiation, while
still allowing subclassing. |
| Methods inherited from class rcf.core.util.adapter.AbstractTypeAdapter |
typeAdapterInverse |
singleton
private static SoftReference<PairSwapAdapter> singleton
- TODO: Javadoc The singleton instance of this class.
PairSwapAdapter
protected PairSwapAdapter()
- Default constructor, protected to enforce singleton instantiation, while
still allowing subclassing.
- See Also:
getPairSwapAdapter()
getPairSwapAdapter
public static final <A,B> PairSwapAdapter<A,B> getPairSwapAdapter()
- TODO: Javadoc
Get the singleton instance of this class.
- Returns:
- The singleton instance of this class.
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
mapA
public PairInterface<B,A> mapA(PairInterface<A,B> a)
mapB
public PairInterface<A,B> mapB(PairInterface<B,A> b)
toString
public String toString()
- Overrides:
toString in class Object