2 * Copyright (C) 2013 EBay Software Foundation
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
8 * Authors : Ashwin Raveendran
10 package org.opendaylight.ovsdb.lib.notation;
12 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
13 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
14 import com.google.common.collect.ForwardingMap;
15 import com.google.common.collect.Maps;
17 import org.opendaylight.ovsdb.lib.notation.json.Converter;
18 import org.opendaylight.ovsdb.lib.notation.json.OvsDBMapSerializer;
20 import java.util.HashMap;
23 @JsonDeserialize(converter = Converter.MapConverter.class)
24 @JsonSerialize(using = OvsDBMapSerializer.class)
25 public class OvsDBMap<K, V> extends ForwardingMap<K, V> {
27 HashMap<K, V> target = Maps.newHashMap();
30 public Map<K, V> delegate() {