public class AnycastAddress extends java.lang.Object implements Address
限定符和类型 | 字段和说明 |
---|---|
protected java.util.Collection<Address> |
destinations |
构造器和说明 |
---|
AnycastAddress() |
AnycastAddress(Address... addresses) |
AnycastAddress(java.util.Collection<Address> addresses) |
限定符和类型 | 方法和说明 |
---|---|
void |
add(Address... addresses) |
void |
addAll(java.util.Collection<Address> addresses) |
int |
compareTo(Address o) |
boolean |
equals(java.lang.Object o) |
java.util.Collection<Address> |
getAddresses() |
int |
hashCode() |
protected void |
internalAdd(Address address) |
void |
readExternal(java.io.ObjectInput objectInput) |
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
size()
Returns serialized size of this address
|
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput objectOutput) |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected java.util.Collection<Address> destinations
public AnycastAddress()
public AnycastAddress(java.util.Collection<Address> addresses)
public AnycastAddress(Address... addresses)
public void add(Address... addresses)
protected void internalAdd(Address address)
public void addAll(java.util.Collection<Address> addresses)
public java.util.Collection<Address> getAddresses()
public int size()
Address
public java.lang.String toString()
toString
在类中 java.lang.Object
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 java.lang.Object
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
writeTo
在接口中 Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
readFrom
在接口中 Streamable
java.lang.Exception
public void writeExternal(java.io.ObjectOutput objectOutput) throws java.io.IOException
writeExternal
在接口中 java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput objectInput) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
在接口中 java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException