Record Class FileListProvider.FileEntry
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.ui.browser.FileListProvider.FileEntry
- Enclosing interface:
FileListProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedisplayNamerecord component.private final booleanThe field for theisDirectoryrecord component.private final intThe field for thematchScorerecord component.private final StringThe field for thenamerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisDirectoryrecord component.intReturns the value of thematchScorerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
displayName
The field for thedisplayNamerecord component. -
isDirectory
private final boolean isDirectoryThe field for theisDirectoryrecord component. -
matchScore
private final int matchScoreThe field for thematchScorerecord component.
-
-
Constructor Details
-
FileEntry
-
FileEntry
-
FileEntry
public FileEntry(@Nonnull String name, @Nonnull String displayName, boolean isDirectory, int matchScore) Creates an instance of aFileEntryrecord class.- Parameters:
name- the value for thenamerecord componentdisplayName- the value for thedisplayNamerecord componentisDirectory- the value for theisDirectoryrecord componentmatchScore- the value for thematchScorerecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
isDirectory
public boolean isDirectory()Returns the value of theisDirectoryrecord component.- Returns:
- the value of the
isDirectoryrecord component
-
matchScore
public int matchScore()Returns the value of thematchScorerecord component.- Returns:
- the value of the
matchScorerecord component
-