Class KeyedInstanceIdentifier<T extends EntryObject<T,K>,K extends Key<T>>
java.lang.Object
org.opendaylight.yangtools.binding.impl.AbstractDataObjectReference<T,DataObjectStep<?>>
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T>
org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<T,K>
- Type Parameters:
T
- Target data typeK
- Target key type
- All Implemented Interfaces:
Serializable
,DataObjectReference<T>
,DataObjectReference.WithKey<T,
,K> KeyAware<K>
,HierarchicalIdentifier<InstanceIdentifier<? extends DataObject>>
,Identifier
,Immutable
public final class KeyedInstanceIdentifier<T extends EntryObject<T,K>,K extends Key<T>>
extends InstanceIdentifier<T>
implements DataObjectReference.WithKey<T,K>
An
InstanceIdentifier
, which has a list key attached at its last path element.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opendaylight.yangtools.yang.binding.InstanceIdentifier
InstanceIdentifier.Builder<T extends DataObject>, InstanceIdentifier.KeyedBuilder<T extends EntryObject<T,
K>, K extends Key<T>> 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 TypeMethodDescriptionbuilder()
Deprecated.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.toLegacy()
Return a legacyInstanceIdentifier
for this reference.Convert thisInstanceIdentifier
into its correspondingDataObjectReference
.Methods inherited from class org.opendaylight.yangtools.yang.binding.InstanceIdentifier
augmentation, builder, builder, builder, builder, builderOfInherited, builderOfInherited, builderOfInherited, builderOfInherited, child, child, child, child, contains, containsWildcarded, contract, create, firstIdentifierOf, firstKeyOf, getTargetType, isExact, isWildcarded, keyOf, toSerialForm, unsafeOf, verifyTarget
Methods inherited from class org.opendaylight.yangtools.binding.impl.AbstractDataObjectReference
concat, equals, getLast, hashCode, steps, throwNSE, toString, writeReplace
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.binding.DataObjectReference
findFirstKeyOf, firstKeyOf, getFirstKeyOf, getPathArguments, isExact, isWildcarded, steps
Methods inherited from interface org.opendaylight.yangtools.binding.DataObjectReference.WithKey
getKey, key
Methods inherited from interface org.opendaylight.yangtools.concepts.Identifier
equals, hashCode, toString
-
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>> - Specified by:
lastStep
in interfaceDataObjectReference.WithKey<T extends EntryObject<T,
K>, K extends Key<T>> - Overrides:
lastStep
in classAbstractDataObjectReference<T extends EntryObject<T,
K>, DataObjectStep<?>> - Returns:
- the last step
-
builder
Deprecated.Description copied from interface:DataObjectReference
Create a newDataObjectReference.Builder
initialized to produce a reference equal to this one.- Specified by:
builder
in interfaceDataObjectReference<T extends EntryObject<T,
K>> - Overrides:
builder
in classInstanceIdentifier<T extends EntryObject<T,
K>> - Returns:
- A builder instance
-
toLegacy
Description copied from interface:DataObjectReference
Return a legacyInstanceIdentifier
for this reference.- Specified by:
toLegacy
in interfaceDataObjectReference<T extends EntryObject<T,
K>> - Specified by:
toLegacy
in interfaceDataObjectReference.WithKey<T extends EntryObject<T,
K>, K extends Key<T>> - Overrides:
toLegacy
in classInstanceIdentifier<T extends EntryObject<T,
K>> - Returns:
- An
InstanceIdentifier
.
-
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>> - Specified by:
toBuilder
in interfaceDataObjectReference.WithKey<T extends EntryObject<T,
K>, K extends Key<T>> - Overrides:
toBuilder
in classInstanceIdentifier<T extends EntryObject<T,
K>> - Returns:
- A builder instance
-
toIdentifier
Description copied from interface:DataObjectReference
Return aDataObjectIdentifier
view of this reference, if possible.- Specified by:
toIdentifier
in interfaceDataObjectReference<T extends EntryObject<T,
K>> - Specified by:
toIdentifier
in interfaceDataObjectReference.WithKey<T extends EntryObject<T,
K>, K extends Key<T>> - Overrides:
toIdentifier
in classInstanceIdentifier<T extends EntryObject<T,
K>> - Returns:
- A
DataObjectIdentifier
-
toReference
Description copied from class:InstanceIdentifier
Convert thisInstanceIdentifier
into its correspondingDataObjectReference
.- Overrides:
toReference
in classInstanceIdentifier<T extends EntryObject<T,
K>> - Returns:
- A non-InstanceIdentifier
DataObjectReference
-