- Type Parameters:
O- the type of the object of the relation
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines a relationship between an integer and an object. For example, if x equals
6, and y is an
int[] array containing 6, then the is-element-of
relation exists between x and y. See the
package description for more
information.- Author:
- Ayco Holleman
-
Method Summary
Modifier and TypeMethodDescriptiondefault ObjIntRelation<O> converse()Returns the converse of this relation, swapping subject and object in the relationship.booleanReturns whether the relationship betweensubjectandobjectexists.default IntObjRelation<O> negate()Returns the negation of thisIntObjRelation.
-
Method Details
-
converse
Returns the converse of this relation, swapping subject and object in the relationship. Thus, the converse of anIntObjRelationis anObjIntRelation.- Returns:
- an
ObjIntRelationthat is the converse of thisIntObjRelation.
-
negate
Returns the negation of thisIntObjRelation.- Returns:
- the negation of this
IntObjRelation
-
exists
Returns whether the relationship betweensubjectandobjectexists.- Parameters:
subject- The value to testobject- The value to test it against- Returns:
trueif the relation exists,falseotherwise
-