Record Class Parsing.BracePairs
java.lang.Object
java.lang.Record
com.j3d.utility.Parsing.BracePairs
- Record Components:
closedPairs- AnArrayListofSamePairrepresenting the start and end indices of closed brace pairs.unclosedBraces- AnArrayListofPairwhere each pair contains the index and character of an unclosed brace.danglingClose- AnArrayListofPairwhere each pair contains the index and character of a dangling close brace.
- Enclosing class:
Parsing
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theclosedPairsrecord component.The field for thedanglingCloserecord component.The field for theunclosedBracesrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclosedPairsrecord component.Returns the value of thedanglingCloserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theunclosedBracesrecord component.
-
Field Details
-
closedPairs
The field for theclosedPairsrecord component. -
unclosedBraces
The field for theunclosedBracesrecord component. -
danglingClose
The field for thedanglingCloserecord component.
-
-
Constructor Details
-
BracePairs
public BracePairs(ArrayList<SamePair<Integer>> closedPairs, ArrayList<Pair<Integer, Character>> unclosedBraces, ArrayList<Pair<Integer, Character>> danglingClose) Creates an instance of aBracePairsrecord class.- Parameters:
closedPairs- the value for theclosedPairsrecord componentunclosedBraces- the value for theunclosedBracesrecord componentdanglingClose- the value for thedanglingCloserecord 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). -
closedPairs
Returns the value of theclosedPairsrecord component.- Returns:
- the value of the
closedPairsrecord component
-
unclosedBraces
Returns the value of theunclosedBracesrecord component.- Returns:
- the value of the
unclosedBracesrecord component
-
danglingClose
Returns the value of thedanglingCloserecord component.- Returns:
- the value of the
danglingCloserecord component
-