df12068c3284761288cd471eea84e3bf7d5889ea
[genius.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / genius / mdsalutil / instructions / AbstractInstructionInfoImpl.java
1 /*
2  * Copyright (c) 2017 Red Hat, Inc. 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.instructions;
9
10 import org.opendaylight.genius.mdsalutil.InstructionInfo;
11
12 /**
13  * Abstract base class for InstructionInfo implementations, to enforce
14  * implementation of equals(), hashCode() and toString().
15  */
16 /* can remain package local instead of public (unless there are InstructionInfo impls elsewhere?) */
17 abstract class AbstractInstructionInfoImpl implements InstructionInfo {
18     private static final long serialVersionUID = 1L;
19
20     @Override
21     public abstract boolean equals(Object other);
22
23     @Override
24     public abstract int hashCode();
25
26     @Override
27     public abstract String toString();
28
29 }