Record Class Command.Chatsetting.Menu.Chat
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Command.Chatsetting.Menu.Chat
- Enclosing class:
Command.Chatsetting.Menu
public static record Command.Chatsetting.Menu.Chat(Integer slot, List<Command.Chatsetting.Menu.Chat.Type> types)
extends Record
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionChat(Integer slot, List<Command.Chatsetting.Menu.Chat.Type> types) Creates an instance of aChatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.slot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.
-
Constructor Details
-
Chat
Creates an instance of aChatrecord class.- Parameters:
slot- the value for theslotrecord componenttypes- the value for thetypesrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withSlot
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTypes
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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). -
slot
Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-