- 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.boolean
Returns whether the relationship betweensubject
andobject
exists.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 anIntObjRelation
is anObjIntRelation
.- Returns:
- an
ObjIntRelation
that is the converse of thisIntObjRelation
.
-
negate
Returns the negation of thisIntObjRelation
.- Returns:
- the negation of this
IntObjRelation
-
exists
Returns whether the relationship betweensubject
andobject
exists.- Parameters:
subject
- The value to testobject
- The value to test it against- Returns:
true
if the relation exists,false
otherwise
-