package org.opendaylight.ovsdb.lib.notation; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.google.common.collect.ForwardingSet; import com.google.common.collect.Sets; import org.opendaylight.ovsdb.lib.notation.json.Converter; import java.util.Set; /*This class exists just to aid in specifying annotations at type level*/ //@JsonTypeIdResolver(OVSDBTypesIDResolver.class) //@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, include = JsonTypeInfo.As.WRAPPER_ARRAY) //@JsonDeserialize(converter = ObjectToSetConverter.class) @JsonDeserialize(converter = Converter.SetConverter.class) public class OvsDBSet extends ForwardingSet { Set target = Sets.newHashSet(); @Override protected Set delegate() { return target; } }