Package org.opendaylight.protocol.pcep
Record Class PCEPTimerProposal
java.lang.Object
java.lang.Record
org.opendaylight.protocol.pcep.PCEPTimerProposal
public record PCEPTimerProposal(@NonNull org.opendaylight.yangtools.yang.common.Uint8 keepAlive, @NonNull org.opendaylight.yangtools.yang.common.Uint8 deadTimer)
extends Record
A curated
keepAlive()
and deadTimer()
timer proposal.-
Constructor Summary
ConstructorDescriptionPCEPTimerProposal
(PcepSessionTimers timers) PCEPTimerProposal
(@NonNull org.opendaylight.yangtools.yang.common.Uint8 keepAlive, @NonNull org.opendaylight.yangtools.yang.common.Uint8 deadTimer) Creates an instance of aPCEPTimerProposal
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull org.opendaylight.yangtools.yang.common.Uint8
Returns the value of thedeadTimer
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.@NonNull org.opendaylight.yangtools.yang.common.Uint8
Returns the value of thekeepAlive
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PCEPTimerProposal
public PCEPTimerProposal(@NonNull org.opendaylight.yangtools.yang.common.Uint8 keepAlive, @NonNull org.opendaylight.yangtools.yang.common.Uint8 deadTimer) Creates an instance of aPCEPTimerProposal
record class.- Parameters:
keepAlive
- the value for thekeepAlive
record componentdeadTimer
- the value for thedeadTimer
record component
-
PCEPTimerProposal
-
-
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)
. -
keepAlive
public @NonNull org.opendaylight.yangtools.yang.common.Uint8 keepAlive()Returns the value of thekeepAlive
record component.- Returns:
- the value of the
keepAlive
record component
-
deadTimer
public @NonNull org.opendaylight.yangtools.yang.common.Uint8 deadTimer()Returns the value of thedeadTimer
record component.- Returns:
- the value of the
deadTimer
record component
-