Package io.netty.util
Interface Constant<T extends Constant<T>>
-
- All Superinterfaces:
java.lang.Comparable<T>
- All Known Implementing Classes:
AbstractConstant
,AttributeKey
,ChannelOption
,NioChannelOption
,Signal
,Signal.SignalConstant
public interface Constant<T extends Constant<T>> extends java.lang.Comparable<T>
A singleton which is safe to compare via the==
operator. Created and managed byConstantPool
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
id()
Returns the unique number assigned to thisConstant
.java.lang.String
name()
Returns the name of thisConstant
.
-