org.jclouds.openstack.nova.v1_1.domain
Class Address

java.lang.Object
  extended by org.jclouds.openstack.nova.v1_1.domain.Address

public class Address
extends Object

IP address

Author:
AdrianCole

Nested Class Summary
static class Address.Builder
           
static class Address.Type
          Relations associated with resources.
 
Field Summary
protected  String addr
           
protected  int version
           
 
Constructor Summary
Address(String addr, int version)
           
 
Method Summary
static Address.Builder builder()
           
static Address createV4(String addr)
           
static Address createV6(String addr)
           
 boolean equals(Object object)
           
 String getAddr()
           
 int getVersion()
           
 int hashCode()
           
 Address.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

addr

protected final String addr

version

protected final int version
Constructor Detail

Address

public Address(String addr,
               int version)
Method Detail

builder

public static Address.Builder builder()

toBuilder

public Address.Builder toBuilder()

createV4

public static Address createV4(String addr)

createV6

public static Address createV6(String addr)

getAddr

public String getAddr()
Returns:
the ip address

getVersion

public int getVersion()
Returns:
the IP version, ex. 4

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.