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