Record Class MinecraftCodeProvider.CodeString
java.lang.Object
java.lang.Record
net.mcreator.generator.template.MinecraftCodeProvider.CodeString
- All Implemented Interfaces:
CharSequence
- Enclosing class:
MinecraftCodeProvider
public static record MinecraftCodeProvider.CodeString(String value)
extends Record
implements CharSequence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlength()subSequence(int start, int end) toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Methods inherited from interface CharSequence
chars, codePoints, getChars, isEmpty
-
Constructor Details
-
CodeString
Creates an instance of aCodeStringrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
of
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
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.- Specified by:
toStringin interfaceCharSequence- Specified by:
toStringin classRecord- Returns:
- a string representation of this object
-
replace
-
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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-