- Type Parameters:
S- The type of the subject 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 some kind of relationship between an object and an integer. For example,
if x is an
int[] array containing 6, and y equals 6, then the
contain-elements relation exists between x and y. See the
package description for more
information.
This interface is included for completeness and because it represents the
converse of the IntObjRelation.
ObjectCheck and IntCheck do not currently support checks in the
form of an ObjIntRelation and the CommonChecks does not define
any.
- Author:
- Ayco Holleman
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault IntObjRelation<S> converse()Returns the converse of this relation, swapping subject and object in the relationship.booleanWhether thisObjIntRelationis found to exist between the providedsubjectandobject.default ObjIntRelation<S> negate()Returns the negation of the thisObjIntRelation.
-
Method Details
-
converse
Returns the converse of this relation, swapping subject and object in the relationship. Thus, the converse of anObjIntRelationis anIntObjRelation.- Returns:
- an
IntObjRelationthat is the converse of thisObjIntRelation.
-
negate
Returns the negation of the thisObjIntRelation.- Returns:
- the negation of the this
ObjIntRelation
-
exists
Whether thisObjIntRelationis found to exist between the providedsubjectandobject.- Parameters:
subject- The subject of the relation (the entity from which the relationship extends)object- The object of the relation (the entity to which the relationship extends)- Returns:
trueif the relation exists,falseotherwise.
-