Class YangInstanceIdentifier.NodeIdentifierWithPredicates.Singleton
java.lang.Object
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates.Singleton
- All Implemented Interfaces:
Serializable
,Comparable<YangInstanceIdentifier.PathArgument>
,Identifier
,Immutable
- Enclosing class:
- YangInstanceIdentifier.NodeIdentifierWithPredicates
@Beta
public static final class YangInstanceIdentifier.NodeIdentifierWithPredicates.Singleton
extends YangInstanceIdentifier.NodeIdentifierWithPredicates
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates
YangInstanceIdentifier.NodeIdentifierWithPredicates.Singleton
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
A Map-like view of this identifier's predicates.boolean
containsKey
(QName qname) Determine whether a particular predicate key is present.entrySet()
Return the set of predicates keys and values.keySet()
Return the predicate key in the iteration order ofYangInstanceIdentifier.NodeIdentifierWithPredicates.entrySet()
.Return the single entry contained in this object.int
size()
Return the number of predicates present.values()
Return the predicate values in the iteration order ofYangInstanceIdentifier.NodeIdentifierWithPredicates.entrySet()
.Methods inherited from class org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates
equals, getValue, getValue, hashCodeImpl, of, of, of, of, of, toRelativeString, toString
Methods inherited from class org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument
compareTo, getNodeType, hashCode
-
Method Details
-
entrySet
Description copied from class:YangInstanceIdentifier.NodeIdentifierWithPredicates
Return the set of predicates keys and values. Keys are guaranteeed to be unique.- Specified by:
entrySet
in classYangInstanceIdentifier.NodeIdentifierWithPredicates
- Returns:
- Predicate set.
-
keySet
Description copied from class:YangInstanceIdentifier.NodeIdentifierWithPredicates
Return the predicate key in the iteration order ofYangInstanceIdentifier.NodeIdentifierWithPredicates.entrySet()
.- Specified by:
keySet
in classYangInstanceIdentifier.NodeIdentifierWithPredicates
- Returns:
- Predicate values.
-
containsKey
Description copied from class:YangInstanceIdentifier.NodeIdentifierWithPredicates
Determine whether a particular predicate key is present.- Specified by:
containsKey
in classYangInstanceIdentifier.NodeIdentifierWithPredicates
- Parameters:
qname
- Predicate key- Returns:
- True if the predicate is present, false otherwise
-
values
Description copied from class:YangInstanceIdentifier.NodeIdentifierWithPredicates
Return the predicate values in the iteration order ofYangInstanceIdentifier.NodeIdentifierWithPredicates.entrySet()
.- Specified by:
values
in classYangInstanceIdentifier.NodeIdentifierWithPredicates
- Returns:
- Predicate values.
-
size
public int size()Description copied from class:YangInstanceIdentifier.NodeIdentifierWithPredicates
Return the number of predicates present.- Specified by:
size
in classYangInstanceIdentifier.NodeIdentifierWithPredicates
- Returns:
- The number of predicates present.
-
asMap
Description copied from class:YangInstanceIdentifier.NodeIdentifierWithPredicates
A Map-like view of this identifier's predicates. The view is expected to be stable and effectively-immutable.- Specified by:
asMap
in classYangInstanceIdentifier.NodeIdentifierWithPredicates
- Returns:
- Map of predicates.
-
singleEntry
Return the single entry contained in this object. This is equivalent toentrySet().iterator().next()
.- Returns:
- A single entry.
-