|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A network address.
Objects of this class and all values returned by their methods are immutable. That is, their values cannot change after they are constructed.
Method Summary | |
int |
compareTo(java.lang.Object o)
Compares this Address with another
Object for order. |
AddressType |
getAddressType()
Gets the AddressType of this Address . |
byte[] |
getBytes()
Gets a byte array representing this Address . |
Method Detail |
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
Address
with another
Object
for order. Returns a negative integer, zero, or
a positive integer depending on whether this
Address
is less than, equal
to, or greater than the other Object
.
If this address is less than the other one, an integer less
than zero is returned. If this address is greater than the
other one, an integer greater than zero is returned. If the
two addresses are equal, zero is returned. If the two addresses
cannot be compared because they are of different
AddressTypes
, a ClassCastException
is thrown.
This method imposes a total ordering on addresses of the same
AddressType
.
otherAddress
- the Address
to compare againstjava.lang.ClassCastException
- if the Addresses
are of different typespublic byte[] getBytes()
Address
.Address
public AddressType getAddressType()
AddressType
of this Address
.AddressType
of this Address
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.