Class KeyedInstanceIdentifier<T extends Identifiable<K> & DataObject,K extends Identifier<T>>
- java.lang.Object
-
- 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
,Immutable
,MutationBehaviour<Immutable>
,Path<InstanceIdentifier<? extends DataObject>>
public class KeyedInstanceIdentifier<T extends Identifiable<K> & DataObject,K extends Identifier<T>> extends InstanceIdentifier<T>
AnInstanceIdentifier
, which has a list key attached at its last path element.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opendaylight.yangtools.yang.binding.InstanceIdentifier
InstanceIdentifier.IdentifiableItem<I extends Identifiable<T> & DataObject,T extends Identifier<I>>, InstanceIdentifier.InstanceIdentifierBuilder<T extends DataObject>, InstanceIdentifier.Item<T extends DataObject>, InstanceIdentifier.PathArgument
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceIdentifier.InstanceIdentifierBuilder<T>
builder()
Create a builder rooted at this key.protected boolean
fastNonEqual(InstanceIdentifier<?> other)
Perform class-specific fast checks for non-equality.K
getKey()
Return the key attached to this identifier.-
Methods inherited from class org.opendaylight.yangtools.yang.binding.InstanceIdentifier
addToStringAttributes, augmentation, builder, builder, builder, builder, child, child, child, child, contains, containsWildcarded, create, create, equals, firstIdentifierOf, firstKeyOf, getPathArguments, getTargetType, hashCode, isWildcarded, keyOf, toString, verifyTarget
-
-
-
-
Method Detail
-
getKey
public final K getKey()
Return the key attached to this identifier. This method is equivalent to callingInstanceIdentifier.keyOf(InstanceIdentifier)
.- Returns:
- Key associated with this instance identifier.
-
builder
public final InstanceIdentifier.InstanceIdentifierBuilder<T> builder()
Description copied from class:InstanceIdentifier
Create a builder rooted at this key.- Overrides:
builder
in classInstanceIdentifier<T extends Identifiable<K> & DataObject>
- Returns:
- A builder instance
-
fastNonEqual
protected boolean fastNonEqual(InstanceIdentifier<?> other)
Description copied from class:InstanceIdentifier
Perform class-specific fast checks for non-equality. This allows subclasses to avoid iterating over the pathArguments by performing quick checks on their specific fields.- Overrides:
fastNonEqual
in classInstanceIdentifier<T extends Identifiable<K> & DataObject>
- Parameters:
other
- The other identifier, guaranteed to be the same class- Returns:
- true if the other identifier cannot be equal to this one.
-
-