|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Relation4<T1,T2,T3,T4>
A set of quads representing a quaternary relation. Relations can be viewed as generalizations of maps in which keys map to sets of values, and the mapping occurs in all directions.
Method Summary | |
---|---|
boolean |
add(T1 first,
T2 second,
T3 third,
T4 fourth)
Add Quad.make(first, second, third, fourth) to the set. |
boolean |
contains(T1 first,
T2 second,
T3 third,
T4 fourth)
Whether Quad.make(first, second, third, fourth) appears in the set. |
boolean |
containsFirst(T1 first)
Whether a quad with the given first value appears in the set. |
boolean |
containsFourth(T4 fourth)
Whether a quad with the given fourth value appears in the set. |
boolean |
containsSecond(T2 second)
Whether a quad with the given second value appears in the set. |
boolean |
containsThird(T3 third)
Whether a quad with the given third value appears in the set. |
Relation3<T2,T3,T4> |
excludeFirsts()
The set of (second, third, fourth) triples for which there exists a (first, second, third, fourth) quad in the relation. |
Relation3<T1,T2,T3> |
excludeFourths()
The set of (first, second, third) triples for which there exists a (first, second, third, fourth) quad in the relation. |
Relation3<T1,T3,T4> |
excludeSeconds()
The set of (first, third, fourth) triples for which there exists a (first, second, third, fourth) quad in the relation. |
Relation3<T1,T2,T4> |
excludeThirds()
The set of (first, second, fourth) triples for which there exists a (first, second, third, fourth) quad in the relation. |
Map<T1,Relation3<T2,T3,T4>> |
firstMap()
A map view of the relation, mapping firsts to sets of (second, third, fourth) triples. |
Set<T1> |
firstSet()
The set of firsts. |
Map<T4,Relation3<T1,T2,T3>> |
fourthMap()
A map view of the relation, mapping fourths to sets of (first, second, third) triples. |
Set<T4> |
fourthSet()
The set of fourths. |
Relation3<T2,T3,T4> |
matchFirst(T1 first)
The set of (second, third, fourth) triples corresponding to a specific first. |
Relation3<T1,T2,T3> |
matchFourth(T4 fourth)
The set of (first, second, third) triples corresponding to a specific fourth. |
Relation3<T1,T3,T4> |
matchSecond(T2 second)
The set of (first, third, fourth) triples corresponding to a specific second. |
Relation3<T1,T2,T4> |
matchThird(T3 third)
The set of (first, second, fourth) triples corresponding to a specific third. |
boolean |
remove(T1 first,
T2 second,
T3 third,
T4 fourth)
Remove Quad.make(first, second, third, fourth) from the set. |
Map<T2,Relation3<T1,T3,T4>> |
secondMap()
A map view of the relation, mapping seconds to sets of (first, third, fourth) triples. |
Set<T2> |
secondSet()
The set of seconds. |
Map<T3,Relation3<T1,T2,T4>> |
thirdMap()
A map view of the relation, mapping thirds to sets of (first, second, fourth) triples. |
Set<T3> |
thirdSet()
The set of thirds. |
Methods inherited from interface java.util.Set |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface edu.rice.cs.plt.lambda.Predicate |
---|
contains |
Methods inherited from interface edu.rice.cs.plt.iter.SizedIterable |
---|
hasFixedSize, isEmpty, isInfinite, isStatic, size, size |
Method Detail |
---|
boolean contains(T1 first, T2 second, T3 third, T4 fourth)
Quad.make(first, second, third, fourth)
appears in the set.
contains
in interface Predicate4<T1,T2,T3,T4>
boolean add(T1 first, T2 second, T3 third, T4 fourth)
Quad.make(first, second, third, fourth)
to the set.
boolean remove(T1 first, T2 second, T3 third, T4 fourth)
Quad.make(first, second, third, fourth)
from the set.
Set<T1> firstSet()
Map<T1,Relation3<T2,T3,T4>> firstMap()
boolean containsFirst(T1 first)
Relation3<T2,T3,T4> matchFirst(T1 first)
Relation3<T2,T3,T4> excludeFirsts()
Set<T2> secondSet()
Map<T2,Relation3<T1,T3,T4>> secondMap()
boolean containsSecond(T2 second)
Relation3<T1,T3,T4> matchSecond(T2 second)
Relation3<T1,T3,T4> excludeSeconds()
Set<T3> thirdSet()
Map<T3,Relation3<T1,T2,T4>> thirdMap()
boolean containsThird(T3 third)
Relation3<T1,T2,T4> matchThird(T3 third)
Relation3<T1,T2,T4> excludeThirds()
Set<T4> fourthSet()
Map<T4,Relation3<T1,T2,T3>> fourthMap()
boolean containsFourth(T4 fourth)
Relation3<T1,T2,T3> matchFourth(T4 fourth)
Relation3<T1,T2,T3> excludeFourths()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |