Record Class LeafPropertyStep<C extends DataContainer,V>
java.lang.Object
java.lang.Record
org.opendaylight.yangtools.binding.LeafPropertyStep<C,V>
- Type Parameters:
C
- containingDataContainer
typeV
- value type
- All Implemented Interfaces:
Serializable
,BindingInstanceIdentifier.Step
,ExactPropertyStep<C,
,V> PropertyStep<C,
V>
public record LeafPropertyStep<C extends DataContainer,V> (@NonNull Class<C extends DataContainer> containerType, @NonNull Class<V> valueType, @NonNull UnresolvedQName.Unqualified yangIdentifier)
extends Record
implements ExactPropertyStep<C,V>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLeafPropertyStep
(@NonNull Class<C> containerType, @NonNull Class<V> valueType, @NonNull UnresolvedQName.Unqualified yangIdentifier) Creates an instance of aLeafPropertyStep
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerType
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.final String
toString()
Returns a string representation of this record class.Returns the value of thevalueType
record component.@NonNull UnresolvedQName.Unqualified
Returns the value of theyangIdentifier
record component.
-
Constructor Details
-
LeafPropertyStep
public LeafPropertyStep(@NonNull Class<C> containerType, @NonNull Class<V> valueType, @NonNull UnresolvedQName.Unqualified yangIdentifier) Creates an instance of aLeafPropertyStep
record class.- Parameters:
containerType
- the value for thecontainerType
record componentvalueType
- the value for thevalueType
record componentyangIdentifier
- the value for theyangIdentifier
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)
. -
containerType
Returns the value of thecontainerType
record component.- Specified by:
containerType
in interfacePropertyStep<C extends DataContainer,
V> - Returns:
- the value of the
containerType
record component
-
valueType
Returns the value of thevalueType
record component.- Specified by:
valueType
in interfacePropertyStep<C extends DataContainer,
V> - Returns:
- the value of the
valueType
record component
-
yangIdentifier
Returns the value of theyangIdentifier
record component.- Specified by:
yangIdentifier
in interfacePropertyStep<C extends DataContainer,
V> - Returns:
- the value of the
yangIdentifier
record component
-