org.jclouds.gogrid.domain
Class Ip

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

public class Ip
extends Object
implements Comparable<Ip>

Author:
Oleksiy Yarmula

Constructor Summary
Ip()
          A no-args constructor is required for deserialization
Ip(long id, String ip, String subnet, boolean isPublic, IpState state, Option datacenter)
           
Ip(String ip)
          Constructs a generic IP address without any additional options.
 
Method Summary
 int compareTo(Ip o)
           
 boolean equals(Object obj)
           
 Option getDatacenter()
           
 long getId()
           
 String getIp()
           
 IpState getState()
           
 String getSubnet()
           
 int hashCode()
           
 boolean isPublic()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ip

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


Ip

public Ip(String ip)
Constructs a generic IP address without any additional options.

Parameters:
ip - ip address

Ip

public Ip(long id,
          String ip,
          String subnet,
          boolean isPublic,
          IpState state,
          Option datacenter)
Method Detail

getId

public long getId()

getDatacenter

public Option getDatacenter()

getIp

public String getIp()

getSubnet

public String getSubnet()

isPublic

public boolean isPublic()

getState

public IpState getState()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

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


Copyright © 2009-2011 jclouds. All Rights Reserved.