2 * Copyright © 2014, 2017 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;
11 import java.util.HashMap;
13 import org.opendaylight.ovsdb.lib.schema.TableSchema;
16 public class TableUpdates extends Response {
18 private final Map<String, TableUpdate> map = new HashMap<>();
20 public TableUpdates() {}
22 public TableUpdates(Map<String, TableUpdate> map) {
26 public <E extends TableSchema<E>> TableUpdate<E> getUpdate(TableSchema<E> table) {
27 return this.map.get(table.getName());
30 public Map<String, TableUpdate> getUpdates() {
35 public String toString() {
36 return "TableUpdates [map=" + map + ", error=" + error + ", details="
37 + details + ", getError()=" + getError() + ", getDetails()="
38 + getDetails() + ", getClass()=" + getClass() + ", hashCode()="
39 + hashCode() + ", toString()=" + super.toString() + "]";