Record Class DestinationSuggestionPacket
java.lang.Object
java.lang.Record
org.mvplugins.multiverse.core.destination.DestinationSuggestionPacket
- Record Components:
destination
- The destinationdestinationString
- The destination stringfinerPermissionSuffix
- The finer permission suffix
public record DestinationSuggestionPacket(Destination<?,?,?> destination, String destinationString, String finerPermissionSuffix)
extends Record
Data of a possible destination for tab completion and permission checking
-
Constructor Summary
ConstructorsConstructorDescriptionDestinationSuggestionPacket
(Destination<?, ?, ?> destination, String destinationString, String finerPermissionSuffix) Creates an instance of aDestinationSuggestionPacket
record class. -
Method Summary
Modifier and TypeMethodDescriptionDestination
<?, ?, ?> Returns the value of thedestination
record component.Returns the value of thedestinationString
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefinerPermissionSuffix
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DestinationSuggestionPacket
public DestinationSuggestionPacket(Destination<?, ?, ?> destination, String destinationString, String finerPermissionSuffix) Creates an instance of aDestinationSuggestionPacket
record class.- Parameters:
destination
- the value for thedestination
record componentdestinationString
- the value for thedestinationString
record componentfinerPermissionSuffix
- the value for thefinerPermissionSuffix
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
destination
Returns the value of thedestination
record component.- Returns:
- the value of the
destination
record component
-
destinationString
Returns the value of thedestinationString
record component.- Returns:
- the value of the
destinationString
record component
-
finerPermissionSuffix
Returns the value of thefinerPermissionSuffix
record component.- Returns:
- the value of the
finerPermissionSuffix
record component
-