Package io.netty.channel
Class DefaultChannelId
- java.lang.Object
-
- io.netty.channel.DefaultChannelId
-
public final class DefaultChannelId extends java.lang.Object implements ChannelId
The defaultChannelId
implementation.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asLongText()
Returns the long yet globally unique string representation of theChannelId
.java.lang.String
asShortText()
Returns the short but globally non-unique string representation of theChannelId
.int
compareTo(ChannelId o)
boolean
equals(java.lang.Object obj)
int
hashCode()
static DefaultChannelId
newInstance()
Returns a newDefaultChannelId
instance.java.lang.String
toString()
-
-
-
Method Detail
-
newInstance
public static DefaultChannelId newInstance()
Returns a newDefaultChannelId
instance.
-
asShortText
public java.lang.String asShortText()
Description copied from interface:ChannelId
Returns the short but globally non-unique string representation of theChannelId
.- Specified by:
asShortText
in interfaceChannelId
-
asLongText
public java.lang.String asLongText()
Description copied from interface:ChannelId
Returns the long yet globally unique string representation of theChannelId
.- Specified by:
asLongText
in interfaceChannelId
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(ChannelId o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ChannelId>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-