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 Summary
ConstructorsConstructorDescriptionNetworkRanges(long appIdStart, long appIdEnd, String macAddressStart, String macAddressEnd) Creates an instance of aNetworkRangesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongappIdEnd()Returns the value of theappIdEndrecord component.longReturns the value of theappIdStartrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themacAddressEndrecord component.Returns the value of themacAddressStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NetworkRanges
Creates an instance of aNetworkRangesrecord class.- Parameters:
appIdStart- the value for theappIdStartrecord componentappIdEnd- the value for theappIdEndrecord componentmacAddressStart- the value for themacAddressStartrecord componentmacAddressEnd- the value for themacAddressEndrecord component
-
-
Method Details
-
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
appIdStart
public long appIdStart()Returns the value of theappIdStartrecord component.- Returns:
- the value of the
appIdStartrecord component
-
appIdEnd
public long appIdEnd()Returns the value of theappIdEndrecord component.- Returns:
- the value of the
appIdEndrecord component
-
macAddressStart
Returns the value of themacAddressStartrecord component.- Returns:
- the value of the
macAddressStartrecord component
-
macAddressEnd
Returns the value of themacAddressEndrecord component.- Returns:
- the value of the
macAddressEndrecord component
-