Record Class Localization.Message.Status
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Message.Status
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Message
public static record Localization.Message.Status(Localization.Message.Status.MOTD motd, Localization.Message.Status.Players players, Localization.Message.Status.Version version)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionStatus(Localization.Message.Status.MOTD motd, Localization.Message.Status.Players players, Localization.Message.Status.Version version) Creates an instance of aStatusrecord 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.motd()Returns the value of themotdrecord component.players()Returns the value of theplayersrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Status
public Status(@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/motd") Localization.Message.Status.MOTD motd, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/players") Localization.Message.Status.Players players, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/version") Localization.Message.Status.Version version) Creates an instance of aStatusrecord class.- Parameters:
motd- the value for themotdrecord componentplayers- the value for theplayersrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withMotd
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayers
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVersion
- 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). -
motd
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/motd") public Localization.Message.Status.MOTD motd()Returns the value of themotdrecord component.- Returns:
- the value of the
motdrecord component
-
players
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/players") public Localization.Message.Status.Players players()Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
version
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/version") public Localization.Message.Status.Version version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-