blob: 938211960247e88ff2f6e96fc9d3ff7ebf94666c [file] [log] [blame]
tomf5d85d42014-10-02 05:27:56 -07001package org.onlab.onos.net;
2
3import java.util.Set;
4
5/**
6 * Represents an set of simply key/value string annotations.
7 */
8public interface SparseAnnotations extends Annotations {
9
10 /**
11 * {@inheritDoc}
12 * <p/>
13 * Note that this set includes keys for any attributes tagged for removal.
14 */
15 @Override
16 public Set<String> keys();
17
18 /**
19 * Indicates whether the specified key has been tagged as removed. This is
20 * used to for merging sparse annotation sets.
21 *
22 * @param key annotation key
23 * @return true if the previous annotation has been tagged for removal
24 */
25 public boolean isRemoved(String key);
26
27}