blob: d7740ae90ab55ef0193eb7c3c04d22d4f496fe83 [file] [log] [blame]
Madan Jampania090a112016-01-18 16:38:17 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Madan Jampania090a112016-01-18 16:38:17 -08003 *
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.vtnrsc.util;
17
18import java.util.Collection;
19import java.util.Map;
20import java.util.Set;
21import java.util.function.BiFunction;
22
23import org.onosproject.store.service.EventuallyConsistentMap;
24import org.onosproject.store.service.EventuallyConsistentMapListener;
25
26/**
27 * Testing adapter for EventuallyConsistentMap.
28 */
29public class VtnEventuallyConsistentMapAdapter<K, V> implements EventuallyConsistentMap<K, V> {
30
31 @Override
32 public String name() {
33 return null;
34 }
35
36 @Override
37 public int size() {
38 return 0;
39 }
40
41 @Override
42 public boolean isEmpty() {
43 return false;
44 }
45
46 @Override
47 public boolean containsKey(K key) {
48 return false;
49 }
50
51 @Override
52 public boolean containsValue(V value) {
53 return false;
54 }
55
56 @Override
57 public V get(K key) {
58 return null;
59 }
60
61 @Override
62 public void put(K key, V value) {
63
64 }
65
66 @Override
67 public V remove(K key) {
68 return null;
69 }
70
71 @Override
72 public void remove(K key, V value) {
73
74 }
75
76 @Override
77 public V compute(K key, BiFunction<K, V, V> recomputeFunction) {
78 return null;
79 }
80
81 @Override
82 public void putAll(Map<? extends K, ? extends V> m) {
83
84 }
85
86 @Override
87 public void clear() {
88
89 }
90
91 @Override
92 public Set<K> keySet() {
93 return null;
94 }
95
96 @Override
97 public Collection<V> values() {
98 return null;
99 }
100
101 @Override
102 public Set<Map.Entry<K, V>> entrySet() {
103 return null;
104 }
105
106 @Override
107 public void addListener(EventuallyConsistentMapListener<K, V> listener) {
108
109 }
110
111 @Override
112 public void removeListener(EventuallyConsistentMapListener<K, V> listener) {
113
114 }
Madan Jampania090a112016-01-18 16:38:17 -0800115}