Record Class ControlBlockNetworkSettings.NetworkRanges

java.lang.Object
java.lang.Record
org.lfenergy.compas.sct.commons.dto.ControlBlockNetworkSettings.NetworkRanges
Record Components:
appIdStart - range start for APPID (inclusive)
appIdEnd - range end for APPID (inclusive)
macAddressStart - range start for MAC-Addresses (inclusive). Ex: "01-0C-CD-01-00-00"
macAddressEnd - range end for MAC-Addresses (inclusive). Ex: "01-0C-CD-01-01-FF"
Enclosing interface:
ControlBlockNetworkSettings

public static record ControlBlockNetworkSettings.NetworkRanges(long appIdStart, long appIdEnd, String macAddressStart, String macAddressEnd) extends Record
Range of APPID and range of MAC-Address
  • Constructor Details

    • NetworkRanges

      public NetworkRanges(long appIdStart, long appIdEnd, String macAddressStart, String macAddressEnd)
      Creates an instance of a NetworkRanges record class.
      Parameters:
      appIdStart - the value for the appIdStart record component
      appIdEnd - the value for the appIdEnd record component
      macAddressStart - the value for the macAddressStart record component
      macAddressEnd - the value for the macAddressEnd record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • appIdStart

      public long appIdStart()
      Returns the value of the appIdStart record component.
      Returns:
      the value of the appIdStart record component
    • appIdEnd

      public long appIdEnd()
      Returns the value of the appIdEnd record component.
      Returns:
      the value of the appIdEnd record component
    • macAddressStart

      public String macAddressStart()
      Returns the value of the macAddressStart record component.
      Returns:
      the value of the macAddressStart record component
    • macAddressEnd

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