ral.lang
Interface UniRelationship<FROM,TO,T extends Pair<FROM,TO>>

All Superinterfaces:
UniMultiRelationship<FROM,TO,T>
All Known Subinterfaces:
One2ManyRelationship<FROM,TO,T>, Relationship<FROM,TO,T>, TreeRelationship<FROM,T>
All Known Implementing Classes:
HashRel, One2ManyHashRel, ReflexiveHashRel, TreeHashRel

public interface UniRelationship<FROM,TO,T extends Pair<FROM,TO>>
extends UniMultiRelationship<FROM,TO,T>

A UniRelationship is a relationship supporting only one direction of traversal.


Method Summary
 java.util.Set<TO> from(FROM f)
          Returns all objects t, such that there exists a pair
 java.util.Set<T> fromPairs(FROM t)
          Returns all pairs with f in the FROM position
 
Methods inherited from interface ral.lang.UniMultiRelationship
add, clearFrom, copyFrom, get, remove, remove
 

Method Detail

fromPairs

java.util.Set<T> fromPairs(FROM t)
Description copied from interface: UniMultiRelationship
Returns all pairs with f in the FROM position

Specified by:
fromPairs in interface UniMultiRelationship<FROM,TO,T extends Pair<FROM,TO>>

from

java.util.Set<TO> from(FROM f)
Description copied from interface: UniMultiRelationship
Returns all objects t, such that there exists a pair

Specified by:
from in interface UniMultiRelationship<FROM,TO,T extends Pair<FROM,TO>>