Package eu.bandm.tools.ramus.ogma
Record Class Reading.Item<D,R>
java.lang.Object
java.lang.Record
eu.bandm.tools.ramus.ogma.Reading.Item<D,R>
- Type Parameters:
D- the type of document identifiersR- the type of parsing results- Record Components:
result- a parsing resultmessages- the list of diagnostic messages that pertain to the result
A parsing result annotated with diagnostic messages.
-
Constructor Summary
ConstructorsConstructorDescriptionItem(R result, List<SimpleMessage<D>> messages) Creates an instance of aItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <D,R extends Comparable<? super R>>
Comparator<Reading.Item<D, R>> final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
compareByResult
-
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). -
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-