ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware

com.github.mrstampy.esp.multiconnectionsocket
Class HostPort

java.lang.Object
  extended by com.github.mrstampy.esp.multiconnectionsocket.HostPort
All Implemented Interfaces:
java.io.Serializable

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

Convenience class to identify connected subscribers.

Author:
burton
See Also:
AbstractSocketConnector, AbstractSubscriptionHandlerAdapter, Serialized Form

Constructor Summary
HostPort(java.lang.String host, int port)
          Instantiates a new host port.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getHost()
          Gets the host.
 int getPort()
          Gets the port.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostPort

public HostPort(java.lang.String host,
                int port)
Instantiates a new host port.

Parameters:
host - the host
port - the port
Method Detail

getHost

public java.lang.String getHost()
Gets the host.

Returns:
the host

getPort

public int getPort()
Gets the port.

Returns:
the port

equals

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

hashCode

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

toString

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

brought to you by Mr. Stampy