public final class LocalAddress extends java.net.SocketAddress implements java.lang.Comparable<LocalAddress>
限定符和类型 | 字段和说明 |
---|---|
static LocalAddress |
ANY |
构造器和说明 |
---|
LocalAddress(java.lang.Class<?> cls)
Creates a new instance with a random ID based on the given class.
|
LocalAddress(java.lang.String id)
Creates a new instance with the specified ID.
|
限定符和类型 | 方法和说明 |
---|---|
int |
compareTo(LocalAddress o) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
id()
Returns the ID of this address.
|
java.lang.String |
toString() |
public static final LocalAddress ANY
public LocalAddress(java.lang.String id)
public LocalAddress(java.lang.Class<?> cls)
public java.lang.String id()
public int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public int compareTo(LocalAddress o)
compareTo
在接口中 java.lang.Comparable<LocalAddress>
public java.lang.String toString()
toString
在类中 java.lang.Object