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
ConstructorDescriptionNetworkRanges
(long appIdStart, long appIdEnd, String macAddressStart, String macAddressEnd) Creates an instance of aNetworkRanges
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
appIdEnd()
Returns the value of theappIdEnd
record component.long
Returns the value of theappIdStart
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themacAddressEnd
record component.Returns the value of themacAddressStart
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
NetworkRanges
Creates an instance of aNetworkRanges
record class.- Parameters:
appIdStart
- the value for theappIdStart
record componentappIdEnd
- the value for theappIdEnd
record componentmacAddressStart
- the value for themacAddressStart
record componentmacAddressEnd
- the value for themacAddressEnd
record 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 theappIdStart
record component.- Returns:
- the value of the
appIdStart
record component
-
appIdEnd
public long appIdEnd()Returns the value of theappIdEnd
record component.- Returns:
- the value of the
appIdEnd
record component
-
macAddressStart
Returns the value of themacAddressStart
record component.- Returns:
- the value of the
macAddressStart
record component
-
macAddressEnd
Returns the value of themacAddressEnd
record component.- Returns:
- the value of the
macAddressEnd
record component
-