Record Class BindingCodecTree.CodecWithPath<T extends DataObject>
java.lang.Object
java.lang.Record
org.opendaylight.yangtools.binding.data.codec.api.BindingCodecTree.CodecWithPath<T>
- Type Parameters:
T
-DataObject
type- Record Components:
codec
- A CommonDataObjectCodecTreeNode handling the translationpath
- AYangInstanceIdentifier
corresponding to the backing Normalized Node
- Enclosing interface:
BindingCodecTree
public static record BindingCodecTree.CodecWithPath<T extends DataObject>(@NonNull CommonDataObjectCodecTreeNode<T extends DataObject> codec, @NonNull YangInstanceIdentifier path)
extends Record
A DTO holding a
CommonDataObjectCodecTreeNode
and the corresponding YangInstanceIdentifier
.-
Constructor Summary
ConstructorsConstructorDescriptionCodecWithPath
(@NonNull CommonDataObjectCodecTreeNode<T> codec, @NonNull YangInstanceIdentifier path) Creates an instance of aCodecWithPath
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull CommonDataObjectCodecTreeNode
<T> codec()
Returns the value of thecodec
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 YangInstanceIdentifier
path()
Returns the value of thepath
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CodecWithPath
public CodecWithPath(@NonNull CommonDataObjectCodecTreeNode<T> codec, @NonNull YangInstanceIdentifier path) Creates an instance of aCodecWithPath
record class.
-
-
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)
. -
codec
Returns the value of thecodec
record component.- Returns:
- the value of the
codec
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-