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

All Superinterfaces:
ImmutablePairInterface<A,B>, ImmutableSingletonInterface<A>, SingletonInterface<A>
All Known Subinterfaces:
TripleInterface<A,B,C>
All Known Implementing Classes:
Pair, Triple

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

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

Version:
$Revision: 1.8 $
Author:
Greg Gibeling

Method Summary
 void set(A a, B b)
          TODO: Javadoc
 A setA(A a)
          TODO: Javadoc Set the first element of this pair.
 B setB(B b)
          TODO: Javadoc Set the second element of this pair.
 
Methods inherited from interface rcf.core.util.groups.ImmutablePairInterface
getA, getB
 
Methods inherited from interface rcf.core.util.groups.ImmutableSingletonInterface
get
 
Methods inherited from interface rcf.core.util.groups.SingletonInterface
set
 
Methods inherited from interface rcf.core.util.groups.ImmutableSingletonInterface
get
 

Method Detail

setA

A setA(A a)
TODO: Javadoc Set the first element of this pair.

Parameters:
a - The new first element of this pair.
Returns:
The old first element on this pair.
See Also:
SingletonInterface.set(Object)

setB

B setB(B b)
TODO: Javadoc Set the second element of this pair.

Parameters:
b - The new second element of this pair.
Returns:
The old second element on this pair.

set

void set(A a,
         B b)
TODO: Javadoc

Parameters:
a -
b -