Package tools.refinery.logic.dnf
Record Class DnfClause
java.lang.Object
java.lang.Record
tools.refinery.logic.dnf.DnfClause
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.boolean
equalsWithSubstitution
(LiteralEqualityHelper helper, DnfClause other) final int
hashCode()
Returns a hash code value for this object.int
literals()
Returns the value of theliterals
record component.Returns the value of thepositiveVariables
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DnfClause
Creates an instance of aDnfClause
record class.- Parameters:
positiveVariables
- the value for thepositiveVariables
record componentliterals
- the value for theliterals
record component
-
-
Method Details
-
equalsWithSubstitution
-
hashCodeWithSubstitution
-
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)
. -
positiveVariables
Returns the value of thepositiveVariables
record component.- Returns:
- the value of the
positiveVariables
record component
-
literals
Returns the value of theliterals
record component.- Returns:
- the value of the
literals
record component
-