Added more ignorable files to .gitignore
[ovsdb.git] / library / src / main / java / org / opendaylight / ovsdb / lib / notation / OvsDBSet.java
1 /*
2  * Copyright (C) 2013 EBay Software Foundation
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Authors : Ashwin Raveendran
9  */
10 package org.opendaylight.ovsdb.lib.notation;
11
12 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
13 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
14 import com.google.common.collect.ForwardingSet;
15 import com.google.common.collect.Sets;
16
17 import org.opendaylight.ovsdb.lib.notation.json.Converter;
18 import org.opendaylight.ovsdb.lib.notation.json.OvsDBSetSerializer;
19
20 import java.util.Set;
21
22 @JsonDeserialize(converter = Converter.SetConverter.class)
23 @JsonSerialize(using = OvsDBSetSerializer.class)
24 public class OvsDBSet<T> extends ForwardingSet<T> {
25
26     Set<T> target = Sets.newHashSet();
27
28     @Override
29     public Set<T> delegate() {
30         return target;
31     }
32 }