org.postgresql.util
Class HostSpec

java.lang.Object
  extended by org.postgresql.util.HostSpec

public class HostSpec
extends Object

Simple container for host and port.


Field Summary
protected  String host
           
protected  int port
           
 
Constructor Summary
HostSpec(String host, int port)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getHost()
           
 int getPort()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

host

protected final String host

port

protected final int port
Constructor Detail

HostSpec

public HostSpec(String host,
                int port)
Method Detail

getHost

public String getHost()

getPort

public int getPort()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2016 PostgreSQL Global Development Group. All rights reserved.