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