rcf.core.util.groups
Class ImmutablePair.Accessor<A,B>

java.lang.Object
  extended by rcf.core.util.groups.ImmutableSingleton<A>
      extended by rcf.core.util.groups.ImmutablePair<rcf.core.util.accessor.Accessor<? super A>,rcf.core.util.accessor.Accessor<? super B>>
          extended by rcf.core.util.groups.ImmutablePair.Accessor<A,B>
Type Parameters:
A - The type of the first entry in each pair.
B - The type of the second entry in each pair.
All Implemented Interfaces:
rcf.core.util.accessor.Accessor<ImmutablePairInterface<A,B>>, ImmutablePairInterface<rcf.core.util.accessor.Accessor<? super A>,rcf.core.util.accessor.Accessor<? super B>>, ImmutableSingletonInterface<rcf.core.util.accessor.Accessor<? super A>>
Enclosing class:
ImmutablePair<A,B>

public static class ImmutablePair.Accessor<A,B>
extends ImmutablePair<rcf.core.util.accessor.Accessor<? super A>,rcf.core.util.accessor.Accessor<? super B>>
implements rcf.core.util.accessor.Accessor<ImmutablePairInterface<A,B>>

TODO: Javadoc Binds a pair of accessors to form a pair accessor. This class is also a pair itself, allowing easy access to the element accessors which it uses.

Version:
$Revision: 1.29 $
Author:
Greg Gibeling

Nested Class Summary
 
Nested classes/interfaces inherited from class rcf.core.util.groups.ImmutablePair
ImmutablePair.Accessor<A,B>, ImmutablePair.Iterable<A,B>, ImmutablePair.Iterator<A,B>
 
Field Summary
 
Fields inherited from class rcf.core.util.groups.ImmutablePair
b
 
Fields inherited from class rcf.core.util.groups.ImmutableSingleton
a
 
Constructor Summary
ImmutablePair.Accessor(rcf.core.util.accessor.Accessor<? super A> _a, rcf.core.util.accessor.Accessor<? super B> _b)
          TODO: Javadoc Construct a pair accessor from the two element accessors
 
Method Summary
 boolean equals(ImmutablePairInterface<A,B> arg0, ImmutablePairInterface<A,B> arg1)
           
 int hashCode(ImmutablePairInterface<A,B> arg0)
           
 String toString(ImmutablePairInterface<A,B> arg0)
           
 
Methods inherited from class rcf.core.util.groups.ImmutablePair
equals, getA, getB, hashCode, toString
 
Methods inherited from class rcf.core.util.groups.ImmutableSingleton
get
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface rcf.core.util.groups.ImmutableSingletonInterface
get
 

Constructor Detail

ImmutablePair.Accessor

public ImmutablePair.Accessor(rcf.core.util.accessor.Accessor<? super A> _a,
                              rcf.core.util.accessor.Accessor<? super B> _b)
TODO: Javadoc Construct a pair accessor from the two element accessors

Parameters:
_a - The A type accessor.
_b - The B type accessor.
Method Detail

equals

public boolean equals(ImmutablePairInterface<A,B> arg0,
                      ImmutablePairInterface<A,B> arg1)
Specified by:
equals in interface rcf.core.util.accessor.Accessor<ImmutablePairInterface<A,B>>

hashCode

public int hashCode(ImmutablePairInterface<A,B> arg0)
Specified by:
hashCode in interface rcf.core.util.accessor.Accessor<ImmutablePairInterface<A,B>>

toString

public String toString(ImmutablePairInterface<A,B> arg0)
Specified by:
toString in interface rcf.core.util.accessor.Accessor<ImmutablePairInterface<A,B>>