Record Class Localization.Command.Maintenance
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Maintenance
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Command
public static record Localization.Command.Maintenance(String alreadyTrue, String alreadyFalse, String serverDescription, String serverVersion, Localization.ReasonMap reasons, String formatTrue, String formatFalse, String person)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionMaintenance(String alreadyTrue, String alreadyFalse, String serverDescription, String serverVersion, Localization.ReasonMap reasons, String formatTrue, String formatFalse, String person) Creates an instance of aMaintenancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealreadyFalserecord component.Returns the value of thealreadyTruerecord component.builder()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theformatFalserecord component.Returns the value of theformatTruerecord component.final inthashCode()Returns a hash code value for this object.person()Returns the value of thepersonrecord component.reasons()Returns the value of thereasonsrecord component.Returns the value of theserverDescriptionrecord component.Returns the value of theserverVersionrecord component.final StringtoString()Returns a string representation of this record class.withAlreadyFalse(String alreadyFalse) withAlreadyTrue(String alreadyTrue) withFormatFalse(String formatFalse) withFormatTrue(String formatTrue) withPerson(String person) withReasons(Localization.ReasonMap reasons) withServerDescription(String serverDescription) withServerVersion(String serverVersion)
-
Constructor Details
-
Maintenance
public Maintenance(String alreadyTrue, String alreadyFalse, String serverDescription, String serverVersion, Localization.ReasonMap reasons, String formatTrue, String formatFalse, String person) Creates an instance of aMaintenancerecord class.- Parameters:
alreadyTrue- the value for thealreadyTruerecord componentalreadyFalse- the value for thealreadyFalserecord componentserverDescription- the value for theserverDescriptionrecord componentserverVersion- the value for theserverVersionrecord componentreasons- the value for thereasonsrecord componentformatTrue- the value for theformatTruerecord componentformatFalse- the value for theformatFalserecord componentperson- the value for thepersonrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withAlreadyTrue
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAlreadyFalse
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withServerDescription
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withServerVersion
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReasons
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormatTrue
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormatFalse
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPerson
- 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). -
alreadyTrue
Returns the value of thealreadyTruerecord component.- Returns:
- the value of the
alreadyTruerecord component
-
alreadyFalse
Returns the value of thealreadyFalserecord component.- Returns:
- the value of the
alreadyFalserecord component
-
serverDescription
Returns the value of theserverDescriptionrecord component.- Returns:
- the value of the
serverDescriptionrecord component
-
serverVersion
Returns the value of theserverVersionrecord component.- Returns:
- the value of the
serverVersionrecord component
-
reasons
Returns the value of thereasonsrecord component.- Returns:
- the value of the
reasonsrecord component
-
formatTrue
Returns the value of theformatTruerecord component.- Returns:
- the value of the
formatTruerecord component
-
formatFalse
Returns the value of theformatFalserecord component.- Returns:
- the value of the
formatFalserecord component
-
person
Returns the value of thepersonrecord component.- Returns:
- the value of the
personrecord component
-