Record Class EmptyTemplate.Size
java.lang.Object
java.lang.Record
net.neoforged.testframework.gametest.EmptyTemplate.Size
- Enclosing class:
- EmptyTemplate
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSize(int length, int height, int width) Creates an instance of aSizerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intlength()Returns the value of thelengthrecord component.static EmptyTemplate.SizetoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
- 
Field Details- 
lengthprivate final int lengthThe field for thelengthrecord component.
- 
heightprivate final int heightThe field for theheightrecord component.
- 
widthprivate final int widthThe field for thewidthrecord component.
 
- 
- 
Constructor Details- 
Sizepublic Size(int length, int height, int width) Creates an instance of aSizerecord class.- Parameters:
- length- the value for the- lengthrecord component
- height- the value for the- heightrecord component
- width- the value for the- widthrecord component
 
 
- 
- 
Method Details- 
parse
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 with '=='.
- 
lengthpublic int length()Returns the value of thelengthrecord component.- Returns:
- the value of the lengthrecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
- 
widthpublic int width()Returns the value of thewidthrecord component.- Returns:
- the value of the widthrecord component
 
 
-