Package pro.verron.officestamper.test
Record Class Contexts.CharacterRecord
java.lang.Object
java.lang.Record
pro.verron.officestamper.test.Contexts.CharacterRecord
- Enclosing class:
Contexts
public static record Contexts.CharacterRecord(int index, String indexSuffix, String characterName, String actorName)
extends Record
Represents a character record.
-
Constructor Summary
ConstructorDescriptionCharacterRecord
(int index, String indexSuffix, String characterName, String actorName) Creates an instance of aCharacterRecord
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactorName
record component.Returns the value of thecharacterName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
index()
Returns the value of theindex
record component.Returns the value of theindexSuffix
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CharacterRecord
Creates an instance of aCharacterRecord
record class.- Parameters:
index
- the value for theindex
record componentindexSuffix
- the value for theindexSuffix
record componentcharacterName
- the value for thecharacterName
record componentactorName
- the value for theactorName
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
index
public int index()Returns the value of theindex
record component.- Returns:
- the value of the
index
record component
-
indexSuffix
Returns the value of theindexSuffix
record component.- Returns:
- the value of the
indexSuffix
record component
-
characterName
Returns the value of thecharacterName
record component.- Returns:
- the value of the
characterName
record component
-
actorName
Returns the value of theactorName
record component.- Returns:
- the value of the
actorName
record component
-