blob: 18f9d63d7315a105d7021ff141e6808198666060 [file] [log] [blame]
Ray Milkey6f440332015-07-31 10:40:53 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Ray Milkey6f440332015-07-31 10:40:53 -07003 *
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.store.service;
17
18import java.util.Collection;
19import java.util.Map;
20import java.util.Set;
Madan Jampani0463cf92016-05-04 14:46:08 -070021import java.util.concurrent.Executor;
Ray Milkey6f440332015-07-31 10:40:53 -070022import java.util.function.BiFunction;
23import java.util.function.Function;
24import java.util.function.Predicate;
25
26/**
27 * Testing adapter for the consistent map.
28 */
29public class ConsistentMapAdapter<K, V> implements ConsistentMap<K, V> {
Madan Jampania090a112016-01-18 16:38:17 -080030
31 @Override
32 public String name() {
33 return null;
34 }
35
36 @Override
Madan Jampani39fff102016-02-14 13:17:28 -080037 public DistributedPrimitive.Type primitiveType() {
Madan Jampania090a112016-01-18 16:38:17 -080038 return DistributedPrimitive.Type.CONSISTENT_MAP;
39 }
40
Ray Milkey6f440332015-07-31 10:40:53 -070041 @Override
42 public int size() {
43 return 0;
44 }
45
46 @Override
47 public boolean isEmpty() {
48 return false;
49 }
50
51 @Override
52 public boolean containsKey(K key) {
53 return false;
54 }
55
56 @Override
57 public boolean containsValue(V value) {
58 return false;
59 }
60
61 @Override
62 public Versioned<V> get(K key) {
63 return null;
64 }
65
66 @Override
Jordan Haltermanf6272442017-04-20 02:18:08 -070067 public Versioned<V> getOrDefault(K key, V defaultValue) {
68 return null;
69 }
70
71 @Override
Ray Milkey6f440332015-07-31 10:40:53 -070072 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
Jihwan Kim9887ad92015-12-12 00:23:57 +0900143 public Versioned<V> replace(K key, V value) {
144 return null;
145 }
146
147 @Override
Ray Milkey6f440332015-07-31 10:40:53 -0700148 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
Madan Jampani0463cf92016-05-04 14:46:08 -0700158 public void addListener(MapEventListener<K, V> listener, Executor executor) {
Ray Milkey6f440332015-07-31 10:40:53 -0700159
160 }
161
162 @Override
163 public void removeListener(MapEventListener<K, V> listener) {
164
165 }
Madan Jampanie1065222015-08-17 16:21:51 -0700166
167 @Override
168 public Map<K, V> asJavaMap() {
169 return null;
170 }
Ray Milkey6f440332015-07-31 10:40:53 -0700171}