|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectral.util.SimpleHashArrayRel<FROM,TO>
public class SimpleHashArrayRel<FROM,TO>
Constructor Summary | |
---|---|
SimpleHashArrayRel()
|
|
SimpleHashArrayRel(java.util.Collection<? extends Pair<FROM,TO>> r)
|
Method Summary | |
---|---|
boolean |
add(FixedPair<FROM,TO> a)
Adds a pair to the relationship. |
boolean |
add(FROM f,
TO t)
|
void |
clearFrom(FROM f)
Clears all pairs with t in the TO position |
void |
clearTo(TO t)
Clears all pairs with t in the TO position |
void |
copyFrom(FROM f,
FROM t)
Copies all pairs with f in the FROM position, where the new pairs have t in the FROM position instead. |
void |
copyTo(TO f,
TO t)
Copies all pairs with f in the TO position, where the new pairs have t in the TO position instead. |
ral.internal.ImmutableArrayListAdaptor<TO> |
from(FROM f)
Returns all objects t, such that there exists a pair |
java.util.ArrayList<FixedPair<FROM,TO>> |
fromPairs(FROM f)
Returns all pairs with f in the FROM position |
FixedPair<FROM,TO> |
get(FROM f,
TO t)
Gets a Pair instance. |
boolean |
remove(FROM f,
TO t)
Removes a pair instance |
boolean |
remove(Pair<FROM,TO> p)
Removes a pair instance |
ral.internal.ImmutableArrayListAdaptor<FROM> |
to(TO t)
Returns all objects f, such that there exists a pair |
java.util.ArrayList<FixedPair<FROM,TO>> |
toPairs(TO t)
Returns all pairs with t in the TO position |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleHashArrayRel()
public SimpleHashArrayRel(java.util.Collection<? extends Pair<FROM,TO>> r)
Method Detail |
---|
public boolean add(FixedPair<FROM,TO> a)
UniMultiRelationship
add
in interface UniMultiRelationship<FROM,TO,FixedPair<FROM,TO>>
public FixedPair<FROM,TO> get(FROM f, TO t)
UniMultiRelationship
get
in interface UniMultiRelationship<FROM,TO,FixedPair<FROM,TO>>
public boolean add(FROM f, TO t)
add
in interface SimpleRelationship<FROM,TO>
public void clearFrom(FROM f)
UniMultiRelationship
clearFrom
in interface UniMultiRelationship<FROM,TO,FixedPair<FROM,TO>>
public void clearTo(TO t)
MultiRelationship
clearTo
in interface MultiRelationship<FROM,TO,FixedPair<FROM,TO>>
public void copyFrom(FROM f, FROM t)
UniMultiRelationship
copyFrom
in interface UniMultiRelationship<FROM,TO,FixedPair<FROM,TO>>
public void copyTo(TO f, TO t)
MultiRelationship
copyTo
in interface MultiRelationship<FROM,TO,FixedPair<FROM,TO>>
public boolean remove(Pair<FROM,TO> p)
UniMultiRelationship
remove
in interface UniMultiRelationship<FROM,TO,FixedPair<FROM,TO>>
public boolean remove(FROM f, TO t)
UniMultiRelationship
remove
in interface SimpleRelationship<FROM,TO>
remove
in interface UniMultiRelationship<FROM,TO,FixedPair<FROM,TO>>
public java.util.ArrayList<FixedPair<FROM,TO>> toPairs(TO t)
MultiRelationship
toPairs
in interface MultiRelationship<FROM,TO,FixedPair<FROM,TO>>
public java.util.ArrayList<FixedPair<FROM,TO>> fromPairs(FROM f)
UniMultiRelationship
fromPairs
in interface UniMultiRelationship<FROM,TO,FixedPair<FROM,TO>>
public ral.internal.ImmutableArrayListAdaptor<FROM> to(TO t)
MultiRelationship
to
in interface MultiRelationship<FROM,TO,FixedPair<FROM,TO>>
to
in interface SimpleRelationship<FROM,TO>
public ral.internal.ImmutableArrayListAdaptor<TO> from(FROM f)
UniMultiRelationship
from
in interface SimpleRelationship<FROM,TO>
from
in interface UniMultiRelationship<FROM,TO,FixedPair<FROM,TO>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |