blob: c2ea09ed628f6675e71991500b30a15b25d54d78 [file] [log] [blame]
Thomas Vachuskaa8f4e7d2015-01-08 17:31:55 -08001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.net;
17
18/**
19 * Represents an mutable set of simple key/value string annotations.
20 */
21public interface MutableAnnotations extends Annotations {
22
23 /**
24 * Returns the value of the specified annotation.
25 *
26 * @param key annotation key
27 * @param value annotation value
28 * @return self
29 */
30 public MutableAnnotations set(String key, String value);
31
32 /**
33 * Clears the specified keys or the all keys if none were specified.
34 *
35 * @param keys keys to be cleared
36 * @return self
37 */
38 public MutableAnnotations clear(String... keys);
39
40}