hypercast
Interface I_Address

All Known Subinterfaces:
I_LogicalAddress, I_NetworkAddress, I_PhysicalAddress, I_UnderlayAddress
All Known Implementing Classes:
DT_LogicalAddress, HC_LogicalAddress, INETv4OnePort, INETv4TwoPorts, IP_Address, NONE_LogicalAddress, SPT_LogicalAddress

public interface I_Address

This defines an interface for address implementations. It is extended by the interfaces I_PhysicalAddress/I_LogicalAddress. See classes HC_LogicalAddress/IP_Address where these interfaces are actual implemented.


Method Summary
 boolean equals(java.lang.Object o)
          Checks if an object equals this I_Address .
 int getSize()
          Returns the byte array size used to hold this I_Address
 boolean greaterThan(hypercast.I_Address a)
          Checks if an I_address object is greater than this one.
 int hashCode()
          Returns the hashcode of this object
 byte[] toByteArray()
          Converts this I_Address to a byte array
 

Method Detail

equals

public boolean equals(java.lang.Object o)
Checks if an object equals this I_Address . if o is null, false is returned.

Overrides:
equals in class java.lang.Object
Throws:
java.lang.IllegalArgumentException - if Object is not of same type.

greaterThan

public boolean greaterThan(hypercast.I_Address a)
Checks if an I_address object is greater than this one. (Total ordering.)

Throws:
java.lang.IllegalArgumentException - if I_Address is not of same type.
java.lang.IllegalArgumentException - if I_Address is null.

toByteArray

public byte[] toByteArray()
Converts this I_Address to a byte array


getSize

public int getSize()
Returns the byte array size used to hold this I_Address


hashCode

public int hashCode()
Returns the hashcode of this object

Overrides:
hashCode in class java.lang.Object