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
ConstructorsConstructorDescriptionSettings(Integer vlanId, Byte vlanPriority, TDurationInMilliSec minTime, TDurationInMilliSec maxTime) Creates an instance of aSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.maxTime()Returns the value of themaxTimerecord component.minTime()Returns the value of theminTimerecord component.final StringtoString()Returns a string representation of this record class.vlanId()Returns the value of thevlanIdrecord component.Returns the value of thevlanPriorityrecord component.
-
Constructor Details
-
Settings
public Settings(Integer vlanId, Byte vlanPriority, TDurationInMilliSec minTime, TDurationInMilliSec maxTime) Creates an instance of aSettingsrecord class.- Parameters:
vlanId- the value for thevlanIdrecord componentvlanPriority- the value for thevlanPriorityrecord componentminTime- the value for theminTimerecord componentmaxTime- the value for themaxTimerecord 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 thevlanIdrecord component.- Returns:
- the value of the
vlanIdrecord component
-
vlanPriority
Returns the value of thevlanPriorityrecord component.- Returns:
- the value of the
vlanPriorityrecord component
-
minTime
Returns the value of theminTimerecord component.- Returns:
- the value of the
minTimerecord component
-
maxTime
Returns the value of themaxTimerecord component.- Returns:
- the value of the
maxTimerecord component
-