1 package org.opendaylight.ovsdb.message;
3 import com.fasterxml.jackson.annotation.JsonAnyGetter;
4 import com.fasterxml.jackson.annotation.JsonAnySetter;
5 import com.fasterxml.jackson.annotation.JsonIgnore;
6 import com.fasterxml.jackson.annotation.JsonProperty;
7 import com.google.common.collect.Maps;
9 import java.util.Collection;
13 import org.opendaylight.ovsdb.table.internal.Table;
16 public class TableUpdate<T extends Table> {
17 /*This could have been done as a map, but doing so would expose the inner wrapper class in type signature*/
19 Map<String, Row<T>> map = Maps.newHashMap();
22 public Row<T> get(String rowId) {
23 return map.get(rowId);
27 public void set(String rowId, Row<T> value) {
28 map.put(rowId, value);
32 public Collection<Row<T>> getRows() {
37 public String toString() {
38 return "TableUpdate [map=" + map + "]";
50 public String getId() {
58 public void setNew(T neww) {
66 public void setOld(T old) {
70 void setId(String id) {
75 public String toString() {
78 ", _new=" + _new.toString() +