Record Class ExpressionHistory.Entry
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.logicprogrammer.ExpressionHistory.Entry
- Record Components:
expression- An expression.text- The text it was typed as, or null if it is printed.
- Enclosing class:
ExpressionHistory
public static record ExpressionHistory.Entry(Expression expression, @Nullable String text)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(Expression expression, String text) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
expression- the value for theexpressionrecord componenttext- the value for thetextrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
text
-