Package dev.jorel.commandapi.arguments
Record Class PreviewInfo<T>
java.lang.Object
java.lang.Record
dev.jorel.commandapi.arguments.PreviewInfo<T>
public record PreviewInfo<T>(AbstractPlayer<?> player, String input, String fullInput, T parsedInput)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPreviewInfo(AbstractPlayer<?> player, String input, String fullInput, T parsedInput) Creates an instance of aPreviewInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefullInputrecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.Returns the value of theparsedInputrecord component.player()Returns the value of theplayerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PreviewInfo
Creates an instance of aPreviewInforecord class.- Parameters:
player- the value for theplayerrecord componentinput- the value for theinputrecord componentfullInput- the value for thefullInputrecord componentparsedInput- the value for theparsedInputrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
player
Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
fullInput
Returns the value of thefullInputrecord component.- Returns:
- the value of the
fullInputrecord component
-
parsedInput
Returns the value of theparsedInputrecord component.- Returns:
- the value of the
parsedInputrecord component
-