rcf.core.util.groups
Class ImmutablePairAAdapter<A,B>
java.lang.Object
rcf.core.util.adapter.AbstractTypeAdapter<A,ImmutablePairInterface<A,B>>
rcf.core.util.groups.ImmutablePairAAdapter<A,B>
- Type Parameters:
A - The first type argument (the one being adapted) for the pairs.B - The second type argument (the one being ignored) for the pairs.
- All Implemented Interfaces:
- rcf.core.util.adapter.TypeAdapter<A,ImmutablePairInterface<A,B>>, rcf.core.util.adapter.TypeAdapterA<A,ImmutablePairInterface<A,B>>, rcf.core.util.adapter.TypeAdapterB<A,ImmutablePairInterface<A,B>>
@Revision(value="$Revision: 1.4 $",
date="$Date: 2006/11/10 00:09:16 $",
tag="$Name: $")
public class ImmutablePairAAdapter<A,B>- extends rcf.core.util.adapter.AbstractTypeAdapter<A,ImmutablePairInterface<A,B>>
TODO: Javadoc
Designed to adapt from the first field of a pair to a complete pair.
TODO: Unit tests, Code review, Javadoc review, Seal/Finalize
- Version:
- $Revision: 1.4 $
- Author:
- Greg Gibeling
| Fields inherited from class rcf.core.util.adapter.AbstractTypeAdapter |
adapterInverse |
| Methods inherited from class rcf.core.util.adapter.AbstractTypeAdapter |
typeAdapterInverse |
singleton
protected static SoftReference<ImmutablePairAAdapter> singleton
- TODO: Javadoc
typeAdapterA
protected final rcf.core.util.adapter.TypeAdapterA<A,B> typeAdapterA
- TODO: Javadoc The adapter which will supply the
B values for new pairs.
ImmutablePairAAdapter
public ImmutablePairAAdapter(rcf.core.util.adapter.TypeAdapterA<A,B> _typeAdapterA)
- TODO: Javadoc
getImmutablePairAAdapter
public static final <A,B> ImmutablePairAAdapter<A,B> getImmutablePairAAdapter()
- TODO: Javadoc
- Type Parameters:
A - B -
- Returns:
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
mapA
public ImmutablePairInterface<A,B> mapA(A a)
mapB
public A mapB(ImmutablePairInterface<A,B> b)
toString
public String toString()
- Overrides:
toString in class Object