lime
Class LimeServerID

java.lang.Object
  |
  +--lime.LimeServerID
All Implemented Interfaces:
java.io.Serializable

public class LimeServerID
extends java.lang.Object
implements java.io.Serializable

Defines the unique identifier of a LimeServer.

Version:
1.0 alpha
Author:
Amy L. Murphy, Gian Pietro Picco
See Also:
Serialized Form

Constructor Summary
LimeServerID(java.net.InetAddress host)
           
LimeServerID(java.net.InetAddress host, int port)
           
LimeServerID(java.lang.String id)
           
 
Method Summary
 boolean equals(java.lang.Object l)
           
 java.net.InetAddress getHost()
           
 int getPort()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LimeServerID

public LimeServerID(java.lang.String id)
             throws java.net.UnknownHostException

LimeServerID

public LimeServerID(java.net.InetAddress host)

LimeServerID

public LimeServerID(java.net.InetAddress host,
                    int port)
Method Detail

getHost

public java.net.InetAddress getHost()

getPort

public int getPort()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object l)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object