Merge "Utility api to configure icmpv6 type"
[genius.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / genius / mdsalutil / AbstractSwitchEntity.java
1 /*
2  * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.genius.mdsalutil;
9
10 import java.math.BigInteger;
11
12 public abstract class AbstractSwitchEntity {
13
14     public abstract BigInteger getDpnId();
15
16     // Force subclasses to implement hashCode() & equals() WITH m_dpnId!
17     @Override
18     public abstract int hashCode();
19
20     @Override
21     public abstract boolean equals(Object obj);
22
23     @Override
24     public abstract String toString();
25 }