Class YangInstanceIdentifier.NodeIdentifierWithPredicates
java.lang.Object
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates
- All Implemented Interfaces:
Serializable
,Comparable<YangInstanceIdentifier.PathArgument>
,Immutable
,YangInstanceIdentifier.PathArgument
- Direct Known Subclasses:
YangInstanceIdentifier.NodeIdentifierWithPredicates.Singleton
- Enclosing class:
- YangInstanceIdentifier
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.int
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 QName
Returns unique QName of data node as defined in YANG Schema, if available.final @Nullable Object
final <T> @Nullable T
final int
hashCode()
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()
.
-
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() -
equals
-
toString
-
toRelativeString
Description copied from interface: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.toString()
, but implementations are encourage to reuse any context already emitted by the previous object.- Specified by:
toRelativeString
in interfaceYangInstanceIdentifier.PathArgument
- Parameters:
previous
- Previous path argument- Returns:
- String representation
-
getNodeType
Description copied from interface:YangInstanceIdentifier.PathArgument
Returns unique QName of data node as defined in YANG Schema, if available.- Specified by:
getNodeType
in interfaceYangInstanceIdentifier.PathArgument
- Returns:
- Node type
-
compareTo
- Specified by:
compareTo
in interfaceComparable<YangInstanceIdentifier.PathArgument>
-
hashCode
public final int hashCode()
-