All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.ovsdb.lib.message.TableUpdates Maven / Gradle / Ivy

/*
 * Copyright © 2014, 2017 EBay Software Foundation and others. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.ovsdb.lib.message;

import java.util.HashMap;
import java.util.Map;
import org.opendaylight.ovsdb.lib.schema.TableSchema;

public class TableUpdates extends Response {
    private final Map map = new HashMap<>();

    public TableUpdates() {

    }

    public TableUpdates(Map map) {
        this.map.putAll(map);
    }

    public > TableUpdate getUpdate(TableSchema table) {
        return this.map.get(table.getName());
    }

    public Map getUpdates() {
        return map;
    }

    @Override
    public String toString() {
        return "TableUpdates [map=" + map + ", error=" + error + ", details="
                + details + ", getError()=" + getError() + ", getDetails()="
                + getDetails() + ", getClass()=" + getClass() + ", hashCode()="
                + hashCode() + ", toString()=" + super.toString() + "]";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy