Package tools.refinery.logic.dnf
Record Class FunctionalDependency<T>
java.lang.Object
java.lang.Record
tools.refinery.logic.dnf.FunctionalDependency<T>
Represents a functional dependency between two sets of variables.
-
Constructor Summary
ConstructorDescriptionFunctionalDependency
(Set<T> forEach, Set<T> unique) Validates the functional dependency. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.forEach()
Returns the value of theforEach
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.unique()
Returns the value of theunique
record component.
-
Constructor Details
-
FunctionalDependency
Validates the functional dependency.- Throws:
InvalidQueryException
- if the functional dependency is invalid
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
forEach
Returns the value of theforEach
record component.- Returns:
- the value of the
forEach
record component
-
unique
Returns the value of theunique
record component.- Returns:
- the value of the
unique
record component
-