2 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. 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
8 package org.opendaylight.vpnservice.mdsalutil;
10 import java.math.BigInteger;
12 public final class GroupInfoKey {
14 private final BigInteger dpId;
15 private final long groupId;
17 public GroupInfoKey(BigInteger dpId, long groupId) {
19 this.groupId = groupId;
22 public long getGroupId() {
26 public BigInteger getDpId() {
31 public int hashCode() {
34 result = prime * result + ((dpId == null) ? 0 : dpId.hashCode());
35 result = prime * result + (int) (groupId ^ (groupId >>> 32));
40 public boolean equals(Object obj) {
45 if (getClass() != obj.getClass())
47 GroupInfoKey other = (GroupInfoKey) obj;
49 if (other.dpId != null)
51 } else if (!dpId.equals(other.dpId))
53 if (groupId != other.groupId)
59 public String toString() {
60 return "GroupStatisticsKey [dpId=" + dpId + ", groupId=" + groupId + "]";