org.jclouds.gogrid.domain
Class Ip
java.lang.Object
   org.jclouds.gogrid.domain.Ip
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.
 | 
 
 
 
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)
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:
- equalsin class- Object
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- Object
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
compareTo
public int compareTo(Ip o)
- 
- Specified by:
- compareToin interface- Comparable<Ip>
 
- 
 
Copyright © 2009-2012 jclouds. All Rights Reserved.