ral.util
Class ReflexiveHashRel<FROM,T extends Pair<FROM,FROM>>

java.lang.Object
  extended by ral.util.HashRel<FROM,FROM,T>
      extended by ral.util.ReflexiveHashRel<FROM,T>
All Implemented Interfaces:
MultiRelationship<FROM,FROM,T>, ReflexiveRelationship<FROM,T>, Relationship<FROM,FROM,T>, UniMultiRelationship<FROM,FROM,T>, UniRelationship<FROM,FROM,T>
Direct Known Subclasses:
TreeHashRel

public class ReflexiveHashRel<FROM,T extends Pair<FROM,FROM>>
extends HashRel<FROM,FROM,T>
implements Relationship<FROM,FROM,T>, ReflexiveRelationship<FROM,T>


Constructor Summary
ReflexiveHashRel()
           
 
Method Summary
 void clear(FROM f)
          Clears all pairs where p appears in either position.
 void copy(FROM f, FROM t)
           
 
Methods inherited from class ral.util.HashRel
add, 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
add, clearFrom, copyFrom, get, remove, remove
 
Methods inherited from interface ral.lang.MultiRelationship
clearTo, copyTo
 
Methods inherited from interface ral.lang.UniMultiRelationship
add, clearFrom, copyFrom, get, remove, remove
 
Methods inherited from interface ral.lang.MultiRelationship
clearTo, copyTo
 
Methods inherited from interface ral.lang.UniMultiRelationship
add, clearFrom, copyFrom, get, remove, remove
 

Constructor Detail

ReflexiveHashRel

public ReflexiveHashRel()
Method Detail

clear

public void clear(FROM f)
Description copied from interface: ReflexiveRelationship
Clears all pairs where p appears in either position.

Specified by:
clear in interface ReflexiveRelationship<FROM,T extends Pair<FROM,FROM>>

copy

public void copy(FROM f,
                 FROM t)