rcf.core.util.groups
Interface ImmutablePairInterface<A,B>

All Superinterfaces:
ImmutableSingletonInterface<A>
All Known Subinterfaces:
ImmutableTripleInterface<A,B,C>, PairInterface<A,B>, TripleInterface<A,B,C>
All Known Implementing Classes:
ImmutablePair, ImmutablePair.Accessor, ImmutablePair.Iterable, ImmutableTriple, ImmutableTriple.Accessor, ImmutableTriple.Iterable, Pair, Pair.Iterable, Triple, Triple.Iterable

@Revision(value="$Revision: 1.5 $",
          date="$Date: 2006/11/09 02:10:08 $",
          tag="$Name:  $")
public interface ImmutablePairInterface<A,B>
extends ImmutableSingletonInterface<A>

TODO: Javadoc Contains methods for accessing the first and second elements in a pair object, which can be virtualized. By using this interface, we can allow classes to act as immutable pairs, without requiring them to inherit from the ImmutablePair class.

Version:
$Revision: 1.5 $
Author:
Greg Gibeling

Method Summary
 A getA()
          TODO: Javadoc Get the first element of this pair.
 B getB()
          TODO: Javadoc Get the second element of this pair.
 
Methods inherited from interface rcf.core.util.groups.ImmutableSingletonInterface
get
 

Method Detail

getA

A getA()
TODO: Javadoc Get the first element of this pair.

Returns:
The first element of this pair.
See Also:
ImmutableSingletonInterface.get()

getB

B getB()
TODO: Javadoc Get the second element of this pair.

Returns:
The second element of this pair.