Package org.onosproject.net
Interface SparseAnnotations
-
- All Superinterfaces:
Annotations
- All Known Implementing Classes:
DefaultAnnotations
public interface SparseAnnotations extends Annotations
Represents an set of sparse key/value string annotations capable of carrying annotation keys tagged for removal.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isRemoved(String key)
Indicates whether the specified key has been tagged as removed.Set<String>
keys()
Returns the set of keys for available annotations.-
Methods inherited from interface org.onosproject.net.Annotations
value
-
-
-
-
Method Detail
-
keys
Set<String> keys()
Returns the set of keys for available annotations.Note that this set includes keys for any attributes tagged for removal.
- Specified by:
keys
in interfaceAnnotations
- Returns:
- annotation keys
-
isRemoved
boolean isRemoved(String key)
Indicates whether the specified key has been tagged as removed. This is used for merging sparse annotation sets.- Parameters:
key
- annotation key- Returns:
- true if the previous annotation has been tagged for removal
-
-