blob: aaa772d2a00c16a6eba4dc4d2bba733f0f359637 [file] [log] [blame]
Brian Stanke81fe2382016-03-03 15:54:32 -05001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Brian Stanke81fe2382016-03-03 15:54:32 -05003 *
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 */
16
17package org.onosproject.store.service;
18
19import java.util.Collection;
20import java.util.Set;
21import java.util.concurrent.CompletableFuture;
22
23/**
24 * Testing adapter for the distributed set.
25 */
26public class DistributedSetAdapter<E> implements AsyncDistributedSet<E> {
27 @Override
28 public CompletableFuture<Void> addListener(SetEventListener<E> listener) {
29 return null;
30 }
31
32 @Override
33 public CompletableFuture<Void> removeListener(SetEventListener<E> listener) {
34 return null;
35 }
36
37 @Override
38 public CompletableFuture<Boolean> add(E element) {
39 return null;
40 }
41
42 @Override
43 public CompletableFuture<Boolean> remove(E element) {
44 return null;
45 }
46
47 @Override
48 public CompletableFuture<Integer> size() {
49 return null;
50 }
51
52 @Override
53 public CompletableFuture<Boolean> isEmpty() {
54 return null;
55 }
56
57 @Override
58 public CompletableFuture<Void> clear() {
59 return null;
60 }
61
62 @Override
63 public CompletableFuture<Boolean> contains(E element) {
64 return null;
65 }
66
67 @Override
68 public CompletableFuture<Boolean> addAll(Collection<? extends E> c) {
69 return null;
70 }
71
72 @Override
73 public CompletableFuture<Boolean> containsAll(Collection<? extends E> c) {
74 return null;
75 }
76
77 @Override
78 public CompletableFuture<Boolean> retainAll(Collection<? extends E> c) {
79 return null;
80 }
81
82 @Override
83 public CompletableFuture<Boolean> removeAll(Collection<? extends E> c) {
84 return null;
85 }
86
87 @Override
88 public CompletableFuture<? extends Set<E>> getAsImmutableSet() {
89 return null;
90 }
91
92 @Override
93 public String name() {
94 return null;
95 }
96}