Class YangInstanceIdentifier.NodeIdentifierWithPredicates
java.lang.Object
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates
- All Implemented Interfaces:
Serializable
,Comparable<YangInstanceIdentifier.PathArgument>
,Identifier
,Immutable
- Direct Known Subclasses:
YangInstanceIdentifier.NodeIdentifierWithPredicates.Singleton
- Enclosing class:
- YangInstanceIdentifier
public abstract static sealed class YangInstanceIdentifier.NodeIdentifierWithPredicates
extends YangInstanceIdentifier.PathArgument
permits YangInstanceIdentifier.NodeIdentifierWithPredicates.Singleton (not exhaustive)
Composite path argument identifying a
MapEntryNode
leaf
overall data tree.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
A Map-like view of this identifier's predicates.abstract boolean
containsKey
(QName key) Determine whether a particular predicate key is present.entrySet()
Return the set of predicates keys and values.final boolean
final @Nullable Object
final <T> @Nullable T
protected final int
keySet()
Return the predicate key in the iteration order ofentrySet()
.static @NonNull YangInstanceIdentifier.NodeIdentifierWithPredicates
static @NonNull YangInstanceIdentifier.NodeIdentifierWithPredicates
static @NonNull YangInstanceIdentifier.NodeIdentifierWithPredicates
static @NonNull YangInstanceIdentifier.NodeIdentifierWithPredicates
of
(QName node, ImmutableOffsetMap<QName, Object> keyValues) static @NonNull YangInstanceIdentifier.NodeIdentifierWithPredicates
abstract int
size()
Return the number of predicates present.final String
Return the string representation of this object for use in context provided by a previous object.final String
toString()
abstract @NonNull Collection<Object>
values()
Return the predicate values in the iteration order ofentrySet()
.Methods inherited from class org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument
compareTo, getNodeType, hashCode
-
Method Details
-
of
-
of
public static @NonNull YangInstanceIdentifier.NodeIdentifierWithPredicates of(QName node, QName key, Object value) -
of
public static @NonNull YangInstanceIdentifier.NodeIdentifierWithPredicates of(QName node, Map.Entry<QName, Object> entry) -
of
public static @NonNull YangInstanceIdentifier.NodeIdentifierWithPredicates of(QName node, Map<QName, Object> keyValues) -
of
public static @NonNull YangInstanceIdentifier.NodeIdentifierWithPredicates of(QName node, ImmutableOffsetMap<QName, Object> keyValues) -
entrySet
Return the set of predicates keys and values. Keys are guaranteeed to be unique.- Returns:
- Predicate set.
-
keySet
Return the predicate key in the iteration order ofentrySet()
.- Returns:
- Predicate values.
-
containsKey
Determine whether a particular predicate key is present.- Parameters:
key
- Predicate key- Returns:
- True if the predicate is present, false otherwise
- Throws:
NullPointerException
- ifkey
is null
-
values
Return the predicate values in the iteration order ofentrySet()
.- Returns:
- Predicate values.
-
getValue
-
getValue
-
size
public abstract int size()Return the number of predicates present.- Returns:
- The number of predicates present.
-
asMap
A Map-like view of this identifier's predicates. The view is expected to be stable and effectively-immutable.- Returns:
- Map of predicates.
-
hashCodeImpl
protected final int hashCodeImpl()- Overrides:
hashCodeImpl
in classYangInstanceIdentifier.PathArgument
-
equals
- Specified by:
equals
in interfaceIdentifier
- Overrides:
equals
in classYangInstanceIdentifier.PathArgument
-
toString
- Specified by:
toString
in interfaceIdentifier
- Overrides:
toString
in classYangInstanceIdentifier.PathArgument
-
toRelativeString
Description copied from class:YangInstanceIdentifier.PathArgument
Return the string representation of this object for use in context provided by a previous object. This method can be implemented in terms ofYangInstanceIdentifier.PathArgument.toString()
, but implementations are encourage to reuse any context already emitted by the previous object.- Overrides:
toRelativeString
in classYangInstanceIdentifier.PathArgument
- Parameters:
previous
- Previous path argument- Returns:
- String representation
-