Record Class EntryEdit
java.lang.Object
java.lang.Record
ai.redouble.demo.EntryEdit
public record EntryEdit(String id, String grade, String status, Double inputPricePerMillion, Double outputPricePerMillion, Boolean confirmed)
extends Record
An edit to one catalog entry from the page: the entry's id, and any of a new grade, a new
status, a new input or output price per million in the entry's currency, or a confirmation
that the entry's inferred facts were checked; null leaves a field as it is.
- Since:
- 0.1 (2026-09-24)
- Author:
- Andrey Santrosyan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfirmedrecord component.final booleanIndicates whether some other object is "equal to" this one.grade()Returns the value of thegraderecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinputPricePerMillionrecord component.Returns the value of theoutputPricePerMillionrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntryEdit
public EntryEdit(String id, String grade, String status, Double inputPricePerMillion, Double outputPricePerMillion, Boolean confirmed) Creates an instance of aEntryEditrecord class.- Parameters:
id- the value for theidrecord componentgrade- the value for thegraderecord componentstatus- the value for thestatusrecord componentinputPricePerMillion- the value for theinputPricePerMillionrecord componentoutputPricePerMillion- the value for theoutputPricePerMillionrecord componentconfirmed- the value for theconfirmedrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
grade
Returns the value of thegraderecord component.- Returns:
- the value of the
graderecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
inputPricePerMillion
Returns the value of theinputPricePerMillionrecord component.- Returns:
- the value of the
inputPricePerMillionrecord component
-
outputPricePerMillion
Returns the value of theoutputPricePerMillionrecord component.- Returns:
- the value of the
outputPricePerMillionrecord component
-
confirmed
Returns the value of theconfirmedrecord component.- Returns:
- the value of the
confirmedrecord component
-