|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.SocketAddress
org.jboss.netty.channel.local.LocalAddress
public final class LocalAddress
An endpoint in the local transport. Each endpoint is identified by a unique
case-insensitive string, except for the pre-defined value called
"ephemeral"
.
"ephemeral"
, but they are not equal to each other.
Field Summary | |
---|---|
static String |
EPHEMERAL
|
Constructor Summary | |
---|---|
LocalAddress(int id)
Creates a new instance with the specified ID. |
|
LocalAddress(String id)
Creates a new instance with the specified ID. |
Method Summary | |
---|---|
int |
compareTo(LocalAddress o)
|
boolean |
equals(Object o)
|
String |
getId()
Returns the ID of this address. |
int |
hashCode()
|
boolean |
isEphemeral()
Returns true if and only if this address is ephemeral. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String EPHEMERAL
Constructor Detail |
---|
public LocalAddress(int id)
public LocalAddress(String id)
Method Detail |
---|
public String getId()
public boolean isEphemeral()
true
if and only if this address is ephemeral.
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(LocalAddress o)
compareTo
in interface Comparable<LocalAddress>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |