Record Class AssetPrefabFileProvider.SearchResult
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.prefablist.AssetPrefabFileProvider.SearchResult
- Enclosing class:
AssetPrefabFileProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSearchResult(String relativePath, String displayName, int score) Creates an instance of aSearchResultrecord 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.Returns the value of therelativePathrecord component.intscore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
relativePath
The field for therelativePathrecord component. -
displayName
The field for thedisplayNamerecord component. -
score
private final int scoreThe field for thescorerecord component.
-
-
Constructor Details
-
SearchResult
Creates an instance of aSearchResultrecord class.- Parameters:
relativePath- the value for therelativePathrecord componentdisplayName- the value for thedisplayNamerecord componentscore- the value for thescorerecord 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 '=='. -
relativePath
Returns the value of therelativePathrecord component.- Returns:
- the value of the
relativePathrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
score
public int score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-