Record Class ControlBlockNetworkSettings.Settings
java.lang.Object
java.lang.Record
org.lfenergy.compas.sct.commons.dto.ControlBlockNetworkSettings.Settings
- Record Components:
vlanId
- id of the vlanvlanPriority
- priority for the vlanminTime
- minTime for GSE communication elementmaxTime
- maxTime for GSE communication element
- Enclosing interface:
- ControlBlockNetworkSettings
public static record ControlBlockNetworkSettings.Settings(Integer vlanId, Byte vlanPriority, TDurationInMilliSec minTime, TDurationInMilliSec maxTime)
extends Record
Network settings for ControlBlock communication
-
Constructor Summary
ConstructorDescriptionSettings
(Integer vlanId, Byte vlanPriority, TDurationInMilliSec minTime, TDurationInMilliSec maxTime) Creates an instance of aSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.maxTime()
Returns the value of themaxTime
record component.minTime()
Returns the value of theminTime
record component.final String
toString()
Returns a string representation of this record class.vlanId()
Returns the value of thevlanId
record component.Returns the value of thevlanPriority
record component.
-
Constructor Details
-
Settings
public Settings(Integer vlanId, Byte vlanPriority, TDurationInMilliSec minTime, TDurationInMilliSec maxTime) Creates an instance of aSettings
record class.- Parameters:
vlanId
- the value for thevlanId
record componentvlanPriority
- the value for thevlanPriority
record componentminTime
- the value for theminTime
record componentmaxTime
- the value for themaxTime
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
vlanId
Returns the value of thevlanId
record component.- Returns:
- the value of the
vlanId
record component
-
vlanPriority
Returns the value of thevlanPriority
record component.- Returns:
- the value of the
vlanPriority
record component
-
minTime
Returns the value of theminTime
record component.- Returns:
- the value of the
minTime
record component
-
maxTime
Returns the value of themaxTime
record component.- Returns:
- the value of the
maxTime
record component
-