Package com.xebisco.yield.font
Record Class FontCharacter
java.lang.Object
java.lang.Record
com.xebisco.yield.font.FontCharacter
-
Constructor Summary
ConstructorsConstructorDescriptionFontCharacter(Texture texture, int top, int advance) Creates an instance of aFontCharacterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintadvance()Returns the value of theadvancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.texture()Returns the value of thetexturerecord component.inttop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FontCharacter
Creates an instance of aFontCharacterrecord class.- Parameters:
texture- the value for thetexturerecord componenttop- the value for thetoprecord componentadvance- the value for theadvancerecord 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 '=='. -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
top
public int top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
advance
public int advance()Returns the value of theadvancerecord component.- Returns:
- the value of the
advancerecord component
-