Class DataObjectReferenceWithKey<T extends EntryObject<T,K>,K extends Key<T>>
java.lang.Object
org.opendaylight.yangtools.binding.impl.AbstractDataObjectReference<T,DataObjectStep<?>>
org.opendaylight.yangtools.binding.impl.DataObjectReferenceImpl<T>
org.opendaylight.yangtools.binding.impl.DataObjectReferenceWithKey<T,K>
- All Implemented Interfaces:
Serializable
,DataObjectReference<T>
,DataObjectReference.WithKey<T,
,K> KeyAware<K>
,Immutable
public final class DataObjectReferenceWithKey<T extends EntryObject<T,K>,K extends Key<T>>
extends DataObjectReferenceImpl<T>
implements DataObjectReference.WithKey<T,K>
- See Also:
-
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>> -
Constructor Summary
ConstructorsConstructorDescriptionDataObjectReferenceWithKey
(Iterable<? extends @NonNull DataObjectStep<?>> steps) -
Method Summary
Modifier and TypeMethodDescriptionlastStep()
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.Methods inherited from class org.opendaylight.yangtools.binding.impl.DataObjectReferenceImpl
ofUnsafeSteps
Methods inherited from class org.opendaylight.yangtools.binding.impl.AbstractDataObjectReference
concat, contract, equals, getLast, hashCode, steps, throwNSE, toSerialForm, 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
builder, getPathArguments, isExact, isWildcarded, steps
Methods inherited from interface org.opendaylight.yangtools.binding.DataObjectReference.WithKey
getKey, key, toLegacy
-
Constructor Details
-
DataObjectReferenceWithKey
-
-
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
-
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 classDataObjectReferenceImpl<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 classDataObjectReferenceImpl<T extends EntryObject<T,
K>> - Returns:
- A
DataObjectIdentifier
-