com.sentilla.net
Interface Addressable

All Superinterfaces:
Serializable
All Known Implementing Classes:
BroadcastAddress, Mac64Address, UnknownAddress

public interface Addressable
extends Serializable

Interface that all address classes must implement.

All address classes must implement the Addressable interface. In addition all address classes must implement the equals( Object obj ) and hashCode() methods. These methods are used to establish address equality and for ordering of addresses.

See Also:
Mac64Address, BroadcastAddress, UnknownAddress

Method Summary
 boolean equals(Object obj)
          Returns true if the input object is equal to this one.
 int hashCode()
          Returns the hash code value for this object.
 

Method Detail

equals

boolean equals(Object obj)
Returns true if the input object is equal to this one. This method should establish logical equality between the input argument and this object. It should not be merely an object pointer comparison.

Overrides:
equals in class Object

hashCode

int hashCode()
Returns the hash code value for this object. If two objects are equal according to the equals(Object) method, then calling hashCode() on each object should result in the same integer result.

Overrides:
hashCode in class Object
Returns:
the hash code value for this object
See Also:
Object


Copyright © 2007 Sentilla Corporation. All Rights Reserved.