2 * Copyright (c) 2014, 2015 EBay Software Foundation and others. All rights reserved.
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
9 package org.opendaylight.ovsdb.lib.message;
13 import org.opendaylight.ovsdb.lib.schema.TableSchema;
15 import com.google.common.collect.Maps;
18 public class TableUpdates extends Response {
20 Map<String, TableUpdate> map = Maps.newHashMap();
22 public TableUpdates() {
23 this(Maps.<String, TableUpdate>newHashMap());
26 public TableUpdates(Map<String, TableUpdate> map) {
30 public <E extends TableSchema<E>> TableUpdate<E> getUpdate(TableSchema<E> table) {
31 return this.map.get(table.getName());
34 public Map<String, TableUpdate> getUpdates() {
39 public String toString() {
40 return "TableUpdates [map=" + map + ", error=" + error + ", details="
41 + details + ", getError()=" + getError() + ", getDetails()="
42 + getDetails() + ", getClass()=" + getClass() + ", hashCode()="
43 + hashCode() + ", toString()=" + super.toString() + "]";