V
- Value type@Beta @NotThreadSafe public final class DOMDataTreePrefixTable<V> extends Object
DOMDataTreeIdentifier
.
Stores values in tree and provides lookup of closest ancestorModifier and Type | Method and Description |
---|---|
static <V> DOMDataTreePrefixTable<V> |
create() |
@Nullable DOMDataTreePrefixTableEntry<V> |
lookup(@NonNull DOMDataTreeIdentifier prefix)
Lookups entry by provided
DOMDataTreeIdentifier , if entry is not present returns
closest non-null entry towards root or null if no entry towards root exists. |
void |
remove(@NonNull DOMDataTreeIdentifier prefix)
Removes value associated to the prefix.
|
void |
store(@NonNull DOMDataTreeIdentifier prefix,
V value)
Stores value associated to the prefix.
|
public static <V> DOMDataTreePrefixTable<V> create()
public @Nullable DOMDataTreePrefixTableEntry<V> lookup(@NonNull DOMDataTreeIdentifier prefix)
DOMDataTreeIdentifier
, if entry is not present returns
closest non-null entry towards root or null if no entry towards root exists.prefix
- Prefix for lookuppublic void store(@NonNull DOMDataTreeIdentifier prefix, V value)
prefix
- DOM prefix of valuevalue
- Value to be storedIllegalStateException
- If value is already stored for provided prefixpublic void remove(@NonNull DOMDataTreeIdentifier prefix)
prefix
- to be removedCopyright © 2019 OpenDaylight. All rights reserved.