Record Class GuiSystemFontDiscovery.DiscoveredFace
java.lang.Object
java.lang.Record
com.render.api.gui.GuiSystemFontDiscovery.DiscoveredFace
- Record Components:
path- canonical font filecollectionIndex- face index within a TTCcollectionFaceCount- number of faces in the sourcefileBytes- source byte sizelastModified- last observed modification time
- Enclosing class:
GuiSystemFontDiscovery
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveredFace(Path path, int collectionIndex, int collectionFaceCount, long fileBytes, Instant lastModified) Creates an instance of aDiscoveredFacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecollectionFaceCountrecord component.intReturns the value of thecollectionIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefileBytesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastModifiedrecord component.path()Returns the value of thepathrecord component.Creates a face declaration for this discovered face.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiscoveredFace
public DiscoveredFace(Path path, int collectionIndex, int collectionFaceCount, long fileBytes, Instant lastModified) Creates an instance of aDiscoveredFacerecord class.- Parameters:
path- the value for thepathrecord componentcollectionIndex- the value for thecollectionIndexrecord componentcollectionFaceCount- the value for thecollectionFaceCountrecord componentfileBytes- the value for thefileBytesrecord componentlastModified- the value for thelastModifiedrecord component
-
-
Method Details
-
toFontFace
Creates a face declaration for this discovered face.- Returns:
- lazy system-backed face declaration
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
path
-
collectionIndex
public int collectionIndex()Returns the value of thecollectionIndexrecord component.- Returns:
- the value of the
collectionIndexrecord component
-
collectionFaceCount
public int collectionFaceCount()Returns the value of thecollectionFaceCountrecord component.- Returns:
- the value of the
collectionFaceCountrecord component
-
fileBytes
-
lastModified
Returns the value of thelastModifiedrecord component.- Returns:
- the value of the
lastModifiedrecord component
-