Record Class SequencedCollectionsExamples.SequenceViewSummary
java.lang.Object
java.lang.Record
net.jrodolfo.java_evolution.java21.SequencedCollectionsExamples.SequenceViewSummary
- Record Components:
original- values observed through the original collectionreversed- values observed through the reversed view
- Enclosing class:
SequencedCollectionsExamples
-
Constructor Summary
ConstructorsConstructorDescriptionSequenceViewSummary(List<String> original, List<String> reversed) Creates an instance of aSequenceViewSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.original()Returns the value of theoriginalrecord component.reversed()Returns the value of thereversedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SequenceViewSummary
-
-
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). -
original
-
reversed
-