Record Class LeafPropertyStep<C extends DataContainer,V>

java.lang.Object
java.lang.Record
org.opendaylight.yangtools.binding.LeafPropertyStep<C,V>
Type Parameters:
C - containing DataContainer type
V - 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>
An ExactPropertyStep for a property generated for an anydata, an anyxml or a leaf statement.
See Also:
  • Constructor Details

    • LeafPropertyStep

      public LeafPropertyStep(@NonNull Class<C> containerType, @NonNull Class<V> valueType, @NonNull UnresolvedQName.Unqualified yangIdentifier)
      Creates an instance of a LeafPropertyStep record class.
      Parameters:
      containerType - the value for the containerType record component
      valueType - the value for the valueType record component
      yangIdentifier - the value for the yangIdentifier record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • containerType

      public @NonNull Class<C> containerType()
      Returns the value of the containerType record component.
      Specified by:
      containerType in interface PropertyStep<C extends DataContainer,V>
      Returns:
      the value of the containerType record component
    • valueType

      public @NonNull Class<V> valueType()
      Returns the value of the valueType record component.
      Specified by:
      valueType in interface PropertyStep<C extends DataContainer,V>
      Returns:
      the value of the valueType record component
    • yangIdentifier

      public @NonNull UnresolvedQName.Unqualified yangIdentifier()
      Returns the value of the yangIdentifier record component.
      Specified by:
      yangIdentifier in interface PropertyStep<C extends DataContainer,V>
      Returns:
      the value of the yangIdentifier record component