Record Class ElementGroup
java.lang.Object
java.lang.Record
ca.mcscert.jpipe.operators.ElementGroup
One cell of the partition computed by
CompositionOperator: a
non-empty list of SourcedElements that are all equivalent under the
operator's EquivalenceRelation.-
Constructor Summary
ConstructorsConstructorDescriptionElementGroup(List<SourcedElement> members) Creates an instance of aElementGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionelements()The unwrapped elements, in the same order asmembers().final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.members()Returns the value of themembersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ElementGroup
Creates an instance of aElementGrouprecord class.- Parameters:
members- the value for themembersrecord component
-
-
Method Details
-
elements
The unwrapped elements, in the same order asmembers(). -
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). -
members
Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-