blob: 56b29529c6f0643af8546b7ba6187c5e48845017 [file] [log] [blame]
Avantika-Huawei9e848e82016-09-01 12:12:42 +05301/*
Brian O'Connor0a4e6742016-09-15 23:03:10 -07002 * Copyright 2016-present Open Networking Laboratory
Avantika-Huawei9e848e82016-09-01 12:12:42 +05303 *
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.pcelabelstore.util;
17
18import java.util.Collection;
19import java.util.Map;
20import java.util.Set;
21import java.util.concurrent.Executor;
22import java.util.function.BiFunction;
23import java.util.function.Function;
24import java.util.function.Predicate;
25
26import org.onosproject.store.service.ConsistentMap;
27import org.onosproject.store.service.DistributedPrimitive;
28import org.onosproject.store.service.MapEventListener;
29import org.onosproject.store.service.Versioned;
30
31/**
32 * Testing adapter for the consistent map.
33 */
34public class ConsistentMapAdapter<K, V> implements ConsistentMap<K, V> {
35
36 @Override
37 public String name() {
38 return null;
39 }
40
41 @Override
42 public DistributedPrimitive.Type primitiveType() {
43 return DistributedPrimitive.Type.CONSISTENT_MAP;
44 }
45
46 @Override
47 public int size() {
48 return 0;
49 }
50
51 @Override
52 public boolean isEmpty() {
53 return false;
54 }
55
56 @Override
57 public boolean containsKey(K key) {
58 return false;
59 }
60
61 @Override
62 public boolean containsValue(V value) {
63 return false;
64 }
65
66 @Override
67 public Versioned<V> get(K key) {
68 return null;
69 }
70
71 @Override
72 public Versioned<V> computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) {
73 return null;
74 }
75
76 @Override
77 public Versioned<V> compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) {
78 return null;
79 }
80
81 @Override
82 public Versioned<V> computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) {
83 return null;
84 }
85
86 @Override
87 public Versioned<V> computeIf(K key, Predicate<? super V> condition,
88 BiFunction<? super K, ? super V, ? extends V> remappingFunction) {
89 return null;
90 }
91
92 @Override
93 public Versioned<V> put(K key, V value) {
94 return null;
95 }
96
97 @Override
98 public Versioned<V> putAndGet(K key, V value) {
99 return null;
100 }
101
102 @Override
103 public Versioned<V> remove(K key) {
104 return null;
105 }
106
107 @Override
108 public void clear() {
109
110 }
111
112 @Override
113 public Set<K> keySet() {
114 return null;
115 }
116
117 @Override
118 public Collection<Versioned<V>> values() {
119 return null;
120 }
121
122 @Override
123 public Set<Map.Entry<K, Versioned<V>>> entrySet() {
124 return null;
125 }
126
127 @Override
128 public Versioned<V> putIfAbsent(K key, V value) {
129 return null;
130 }
131
132 @Override
133 public boolean remove(K key, V value) {
134 return false;
135 }
136
137 @Override
138 public boolean remove(K key, long version) {
139 return false;
140 }
141
142 @Override
143 public Versioned replace(K key, V value) {
144 return null;
145 }
146
147 @Override
148 public boolean replace(K key, V oldValue, V newValue) {
149 return false;
150 }
151
152 @Override
153 public boolean replace(K key, long oldVersion, V newValue) {
154 return false;
155 }
156
157 @Override
158 public void addListener(MapEventListener<K, V> listener, Executor executor) {
159
160 }
161
162 @Override
163 public void removeListener(MapEventListener<K, V> listener) {
164
165 }
166
167 @Override
168 public Map<K, V> asJavaMap() {
169 return null;
170 }
171}