Record Class Term
java.lang.Object
java.lang.Record
dev.pfaff.altargui.ffi.Term
- All Implemented Interfaces:
ToExpression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of thecoefficient
record component.dividedBy
(double rhs) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.negate()
query()
Returns the value of thequery
record component.times
(double rhs) toString()
Returns a string representation of this record class.
-
Constructor Details
-
Term
-
Term
Creates an instance of aTerm
record class.- Parameters:
query
- the value for thequery
record componentcoefficient
- the value for thecoefficient
record component
-
-
Method Details
-
toExpression
- Specified by:
toExpression
in interfaceToExpression
-
times
- Specified by:
times
in interfaceToExpression
-
dividedBy
- Specified by:
dividedBy
in interfaceToExpression
-
negate
- Specified by:
negate
in interfaceToExpression
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
query
Returns the value of thequery
record component.- Returns:
- the value of the
query
record component
-
coefficient
public double coefficient()Returns the value of thecoefficient
record component.- Returns:
- the value of the
coefficient
record component
-