Record Class Localization.Command.Stream

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Stream
All Implemented Interfaces:
LocalizationSetting
Enclosing class:
Localization.Command

public static record Localization.Command.Stream(String already, String not, String prefixTrue, String prefixFalse, String urlTemplate, String formatStart, String formatEnd) extends Record implements LocalizationSetting
Since:
1.7.1
  • Constructor Details

    • Stream

      public Stream(String already, String not, String prefixTrue, String prefixFalse, String urlTemplate, String formatStart, String formatEnd)
      Creates an instance of a Stream record class.
      Parameters:
      already - the value for the already record component
      not - the value for the not record component
      prefixTrue - the value for the prefixTrue record component
      prefixFalse - the value for the prefixFalse record component
      urlTemplate - the value for the urlTemplate record component
      formatStart - the value for the formatStart record component
      formatEnd - the value for the formatEnd record component
  • Method Details

    • builder

    • toBuilder

    • withAlready

      public Localization.Command.Stream withAlready(String already)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNot

      public Localization.Command.Stream withNot(String not)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPrefixTrue

      public Localization.Command.Stream withPrefixTrue(String prefixTrue)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPrefixFalse

      public Localization.Command.Stream withPrefixFalse(String prefixFalse)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUrlTemplate

      public Localization.Command.Stream withUrlTemplate(String urlTemplate)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatStart

      public Localization.Command.Stream withFormatStart(String formatStart)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatEnd

      public Localization.Command.Stream withFormatEnd(String formatEnd)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • already

      public String already()
      Returns the value of the already record component.
      Returns:
      the value of the already record component
    • not

      public String not()
      Returns the value of the not record component.
      Returns:
      the value of the not record component
    • prefixTrue

      public String prefixTrue()
      Returns the value of the prefixTrue record component.
      Returns:
      the value of the prefixTrue record component
    • prefixFalse

      public String prefixFalse()
      Returns the value of the prefixFalse record component.
      Returns:
      the value of the prefixFalse record component
    • urlTemplate

      public String urlTemplate()
      Returns the value of the urlTemplate record component.
      Returns:
      the value of the urlTemplate record component
    • formatStart

      public String formatStart()
      Returns the value of the formatStart record component.
      Returns:
      the value of the formatStart record component
    • formatEnd

      public String formatEnd()
      Returns the value of the formatEnd record component.
      Returns:
      the value of the formatEnd record component