Record Class Command.Flectonepulse.Editor

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Command.Flectonepulse.Editor
Enclosing class:
Command.Flectonepulse

public static record Command.Flectonepulse.Editor(String host, Boolean https, Integer port) extends Record
Since:
1.7.1
  • Constructor Details

    • Editor

      public Editor(String host, Boolean https, Integer port)
      Creates an instance of a Editor record class.
      Parameters:
      host - the value for the host record component
      https - the value for the https record component
      port - the value for the port record component
  • Method Details

    • builder

    • toBuilder

    • withHost

      public Command.Flectonepulse.Editor withHost(String host)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withHttps

      public Command.Flectonepulse.Editor withHttps(Boolean https)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPort

      public Command.Flectonepulse.Editor withPort(Integer port)
      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.
    • host

      public String host()
      Returns the value of the host record component.
      Returns:
      the value of the host record component
    • https

      public Boolean https()
      Returns the value of the https record component.
      Returns:
      the value of the https record component
    • port

      public Integer port()
      Returns the value of the port record component.
      Returns:
      the value of the port record component