Contents
Record Class FileListProvider.FileEntry
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.ui.browser.FileListProvider.FileEntry
- Record Components:
name- The actual filenamedisplayName- The name to display in the UIisDirectory- Whether this entry is a directoryisTerminal- Whether this directory is a terminal entry (selectable, not navigable)matchScore- Search match score for sorting
- Enclosing interface:
FileListProvider
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aFileEntryrecord class. -
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.booleanReturns the value of theisTerminalrecord component.intReturns the value of thematchScorerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileEntry
-
FileEntry
-
FileEntry
-
FileEntry
public FileEntry(@Nonnull String name, @Nonnull String displayName, boolean isDirectory, boolean isTerminal, int matchScore) Creates an instance of aFileEntryrecord class.- Parameters:
name- the value for thenamerecord componentdisplayName- the value for thedisplayNamerecord componentisDirectory- the value for theisDirectoryrecord componentisTerminal- the value for theisTerminalrecord componentmatchScore- the value for thematchScorerecord component
-
-
Method Details
-
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. -
name
-
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
-
isTerminal
public boolean isTerminal()Returns the value of theisTerminalrecord component.- Returns:
- the value of the
isTerminalrecord component
-
matchScore
public int matchScore()Returns the value of thematchScorerecord component.- Returns:
- the value of the
matchScorerecord component
-