public class RelationEqualForPairOfValues extends Relation
PairField).| Constructor | Description |
|---|---|
RelationEqualForPairOfValues() |
Constructor for
RelationEqualForPairOfValues class. |
| Modifier and Type | Method | Description |
|---|---|---|
Relation |
duplicate() |
Returns duplicate of this relation, which is fully independent of this relation.
|
boolean |
fulfilledBy(Field pairOfValues) |
Checks if given pair of values (object of type
PairField) fulfills this relation. |
java.lang.String |
toString() |
Gets textual form of this relation.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReferenceValue, setReferenceValuepublic RelationEqualForPairOfValues()
RelationEqualForPairOfValues class.
Calls Relation(null).public boolean fulfilledBy(Field pairOfValues)
PairField) fulfills this relation.
For example pair (8,8) fulfills this relation beacuse 8 = 8, but pair (2,5) does not fulfill this relation
because 2 != 5.fulfilledBy in class RelationpairOfValues - pair of values for which it is checked if first element in pair is equal to second elementtrue if this relation is fulfilled by given pair of values, false otherwiseInvalidTypeException - when type of pairOfValues is different than PairFieldpublic java.lang.String toString()
Relation.toString metod.