public final class LocalAddress extends java.net.SocketAddress implements java.lang.Comparable<LocalAddress>
"ephemeral"
.
"ephemeral"
, but they are not equal to each other.限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
EPHEMERAL |
构造器和说明 |
---|
LocalAddress(int id)
Creates a new instance with the specified ID.
|
LocalAddress(java.lang.String id)
Creates a new instance with the specified ID.
|
限定符和类型 | 方法和说明 |
---|---|
int |
compareTo(LocalAddress o) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId()
Returns the ID of this address.
|
int |
hashCode() |
boolean |
isEphemeral()
Returns
true if and only if this address is ephemeral. |
java.lang.String |
toString() |
public static final java.lang.String EPHEMERAL
public LocalAddress(int id)
public LocalAddress(java.lang.String id)
public java.lang.String getId()
public boolean isEphemeral()
true
if and only if this address is ephemeral.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