org.jclouds.gogrid.domain
Class Ip
java.lang.Object
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:
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.