Interface DataObjectReference.WithKey<T extends EntryObject<T,K>,K extends Key<T>>
- Type Parameters:
T
- EntryObject typeK
- Key type
- All Superinterfaces:
DataObjectReference<T>
,Immutable
,KeyAware<K>
,Serializable
- All Known Subinterfaces:
DataObjectIdentifier.WithKey<T,
K>
- All Known Implementing Classes:
DataObjectIdentifierWithKey
,DataObjectReferenceWithKey
,KeyedInstanceIdentifier
- Enclosing interface:
DataObjectReference<T extends DataObject>
public static sealed interface DataObjectReference.WithKey<T extends EntryObject<T,K>,K extends Key<T>>
extends DataObjectReference<T>, KeyAware<K>
permits DataObjectIdentifier.WithKey<T,K>, DataObjectReferenceWithKey<T,K>, KeyedInstanceIdentifier<T,K>
A
DataObjectReference
pointing to a EntryObject
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.binding.DataObjectReference
DataObjectReference.Builder<T extends DataObject>, DataObjectReference.WithKey<T extends EntryObject<T,
K>, K extends Key<T>> -
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull K
getKey()
Deprecated.default K
key()
Returns an unique key for the object.lastStep()
Return the last step of this reference.Create a newDataObjectReference.Builder
initialized to produce a reference equal to this one.Return aDataObjectIdentifier
view of this reference, if possible.default @NonNull KeyedInstanceIdentifier
<T, K> toLegacy()
Return a legacyKeyedInstanceIdentifier
for this reference.Methods inherited from interface org.opendaylight.yangtools.binding.DataObjectReference
builder, getPathArguments, isExact, isWildcarded, steps
-
Method Details
-
lastStep
Description copied from interface:DataObjectReference
Return the last step of this reference.- Specified by:
lastStep
in interfaceDataObjectReference<T extends EntryObject<T,
K>> - Returns:
- the last step
-
toBuilder
DataObjectReference.Builder.WithKey<T,K> toBuilder()Description copied from interface:DataObjectReference
Create a newDataObjectReference.Builder
initialized to produce a reference equal to this one.- Specified by:
toBuilder
in interfaceDataObjectReference<T extends EntryObject<T,
K>> - Returns:
- A builder instance
-
toIdentifier
DataObjectIdentifier.WithKey<T,K> toIdentifier()Description copied from interface:DataObjectReference
Return aDataObjectIdentifier
view of this reference, if possible.- Specified by:
toIdentifier
in interfaceDataObjectReference<T extends EntryObject<T,
K>> - Returns:
- A
DataObjectIdentifier
-
toLegacy
Return a legacyKeyedInstanceIdentifier
for this reference.- Specified by:
toLegacy
in interfaceDataObjectReference<T extends EntryObject<T,
K>> - Returns:
- A
KeyedInstanceIdentifier
.
-
key
Description copied from interface:KeyAware
Returns an unique key for the object. -
getKey
Deprecated.Usekey()
instead.Return the key attached to this identifier. This method is equivalent to callingInstanceIdentifier.keyOf(InstanceIdentifier)
.- Returns:
- Key associated with this instance identifier.
-
key()
instead.