solar.api
Interface Address

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
PastryAddress, SocketAddress

public interface Address
extends java.io.Serializable

Interface of various network address, such as socket address or P2P keys.

Version:
$Id: Address.java,v 1.3 2003/10/05 18:50:53 glchen Exp $
Author:
Guanling Chen

Method Summary
 boolean equals(java.lang.Object obj)
          Test whether two addresses are equals.
 int getEncoding()
          Return the encoding of this address.
 int hashCode()
          Return the hash code of this address.
 byte[] toBytes()
          Return the byte array representation of this address.
 java.lang.String toString()
          Return the string representation of this address.
 

Method Detail

toString

public java.lang.String toString()
Return the string representation of this address.

Overrides:
toString in class java.lang.Object

toBytes

public byte[] toBytes()
Return the byte array representation of this address.


getEncoding

public int getEncoding()
Return the encoding of this address.


equals

public boolean equals(java.lang.Object obj)
Test whether two addresses are equals.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Return the hash code of this address.

Overrides:
hashCode in class java.lang.Object