org.jclouds.gogrid.domain
Class IpPortPair

java.lang.Object
  extended by org.jclouds.gogrid.domain.IpPortPair
All Implemented Interfaces:
Comparable<IpPortPair>

public class IpPortPair
extends Object
implements Comparable<IpPortPair>

Author:
Oleksiy Yarmula

Constructor Summary
IpPortPair()
          A no-args constructor is required for deserialization
IpPortPair(Ip ip, int port)
           
 
Method Summary
 int compareTo(IpPortPair o)
           
 boolean equals(Object o)
           
 Ip getIp()
           
 int getPort()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IpPortPair

public IpPortPair()
A no-args constructor is required for deserialization


IpPortPair

public IpPortPair(Ip ip,
                  int port)
Method Detail

getIp

public Ip getIp()

getPort

public int getPort()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(IpPortPair o)
Specified by:
compareTo in interface Comparable<IpPortPair>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.