ral.util
Class One2ManyHashRel<FROM,TO,T extends Pair<FROM,TO>>

java.lang.Object
  extended by ral.util.HashRel<FROM,TO,T>
      extended by ral.util.One2ManyHashRel<FROM,TO,T>
All Implemented Interfaces:
MultiRelationship<FROM,TO,T>, One2ManyRelationship<FROM,TO,T>, Relationship<FROM,TO,T>, UniMultiRelationship<FROM,TO,T>, UniRelationship<FROM,TO,T>

public class One2ManyHashRel<FROM,TO,T extends Pair<FROM,TO>>
extends HashRel<FROM,TO,T>
implements One2ManyRelationship<FROM,TO,T>


Constructor Summary
One2ManyHashRel()
           
 
Method Summary
 boolean add(T a)
          Adds a pair to the relationship.
 
Methods inherited from class ral.util.HashRel
clearFrom, clearTo, copyFrom, copyTo, from, fromPairs, get, remove, remove, to, toPairs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ral.lang.Relationship
from, fromPairs, to, toPairs
 
Methods inherited from interface ral.lang.UniMultiRelationship
clearFrom, copyFrom, get, remove, remove
 
Methods inherited from interface ral.lang.MultiRelationship
clearTo, copyTo
 
Methods inherited from interface ral.lang.UniMultiRelationship
clearFrom, copyFrom, get, remove, remove
 

Constructor Detail

One2ManyHashRel

public One2ManyHashRel()
Method Detail

add

public boolean add(T a)
Description copied from interface: UniMultiRelationship
Adds a pair to the relationship.

Specified by:
add in interface UniMultiRelationship<FROM,TO,T extends Pair<FROM,TO>>
Overrides:
add in class HashRel<FROM,TO,T extends Pair<FROM,TO>>