|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<T>
edu.rice.cs.plt.collect.AbstractPredicateSet<Pair<T2,T1>>
edu.rice.cs.plt.collect.AbstractRelation.InverseRelation
edu.rice.cs.plt.collect.AbstractFunctionalRelation.InverseFunctionalRelation
edu.rice.cs.plt.collect.AbstractOneToOneRelation.InverseOneToOneRelation
protected class AbstractOneToOneRelation.InverseOneToOneRelation
An inverse of the enclosing relation. Extends AbstractFunctionalRelation.InverseFunctionalRelation with
the methods necessary to implement OneToOneRelation.
| Constructor Summary | |
|---|---|
protected |
AbstractOneToOneRelation.InverseOneToOneRelation()
|
| Method Summary | |
|---|---|
LambdaMap<T2,T1> |
functionMap()
A map view of the relation, mapping firsts to seconds. |
OneToOneRelation<T1,T2> |
inverse()
Produce the inverse of the relation, derived by swapping the elements of each pair. |
T1 |
value(T2 first)
Produce the second corresponding to first, or null if there is none. |
| Methods inherited from class edu.rice.cs.plt.collect.AbstractFunctionalRelation.InverseFunctionalRelation |
|---|
antecedent, injectionMap |
| Methods inherited from class edu.rice.cs.plt.collect.AbstractRelation.InverseRelation |
|---|
add, add, clear, contains, contains, containsFirst, containsSecond, excludeFirsts, excludeSeconds, firstSet, hasFixedSize, isEmpty, isInfinite, isStatic, iterator, matchFirst, matchSecond, remove, remove, secondSet, size, size |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.rice.cs.plt.collect.OneToOneRelation |
|---|
add, add |
| Methods inherited from interface edu.rice.cs.plt.collect.FunctionalRelation |
|---|
matchFirst |
| Methods inherited from interface edu.rice.cs.plt.collect.InjectiveRelation |
|---|
antecedent, injectionMap, matchSecond |
| Methods inherited from interface edu.rice.cs.plt.collect.Relation |
|---|
contains, contains, containsFirst, containsSecond, excludeFirsts, excludeSeconds, firstSet, remove, remove, secondSet |
| Methods inherited from interface java.util.Set |
|---|
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface edu.rice.cs.plt.iter.SizedIterable |
|---|
hasFixedSize, isEmpty, isInfinite, isStatic, size, size |
| Constructor Detail |
|---|
protected AbstractOneToOneRelation.InverseOneToOneRelation()
| Method Detail |
|---|
public T1 value(T2 first)
FunctionalRelationfirst, or null if there is none.
value in interface FunctionalRelation<T2,T1>value in interface Lambda<T2,T1>public LambdaMap<T2,T1> functionMap()
FunctionalRelation
functionMap in interface FunctionalRelation<T2,T1>public OneToOneRelation<T1,T2> inverse()
Relation
inverse in interface FunctionalRelation<T2,T1>inverse in interface InjectiveRelation<T2,T1>inverse in interface OneToOneRelation<T2,T1>inverse in interface Relation<T2,T1>inverse in class AbstractFunctionalRelation.InverseFunctionalRelation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||