2 * Copyright IBM Corporation, 2013. 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
8 package org.opendaylight.controller.md.statistics.manager;
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow;
12 final class FlowStatsEntry {
13 private final Short tableId;
14 private final Flow flow;
16 public FlowStatsEntry(Short tableId, Flow flow){
17 this.tableId = tableId;
21 public Short getTableId() {
25 public Flow getFlow() {
30 public int hashCode() {
33 result = prime * result + ((flow == null) ? 0 : flow.hashCode());
34 result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
39 public boolean equals(Object obj) {
44 if (getClass() != obj.getClass())
46 FlowStatsEntry other = (FlowStatsEntry) obj;
48 if (other.flow != null)
50 } else if (!flow.equals(other.flow))
52 if (tableId == null) {
53 if (other.tableId != null)
55 } else if (!tableId.equals(other.tableId))