Class AbstractConstant<T extends AbstractConstant<T>>
java.lang.Object
com.swiftmq.impl.mqtt.v311.netty.util.AbstractConstant<T>
- All Implemented Interfaces:
Constant<T>,Comparable<T>
public abstract class AbstractConstant<T extends AbstractConstant<T>>
extends Object
implements Constant<T>
Base implementation of
Constant.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractConstant(int id, String name) Creates a new instance. -
Method Summary
-
Constructor Details
-
AbstractConstant
Creates a new instance.
-
-
Method Details
-
name
Description copied from interface:ConstantReturns the name of thisConstant.- Specified by:
namein interfaceConstant<T extends AbstractConstant<T>>
-
id
public final int id()Description copied from interface:ConstantReturns the unique number assigned to thisConstant.- Specified by:
idin interfaceConstant<T extends AbstractConstant<T>>
-
toString
-
hashCode
public final int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<T extends AbstractConstant<T>>
-