org.jclouds.openstack.nova.v2_0.domain.zonescoped
Class ZoneAndName

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.domain.zonescoped.ZoneAndName
Direct Known Subclasses:
SecurityGroupInZone, ZoneSecurityGroupNameAndPorts

public class ZoneAndName
extends Object

Helpful when looking for resources by zone and name

Author:
Adrian Cole

Field Summary
protected  String name
           
static com.google.common.base.Function<ZoneAndName,String> NAME_FUNCTION
           
static com.google.common.base.Function<ZoneAndName,String> ZONE_FUNCTION
           
protected  String zoneId
           
 
Constructor Summary
protected ZoneAndName(String zoneId, String name)
           
 
Method Summary
 boolean equals(Object o)
           
static ZoneAndName fromSlashEncoded(String name)
           
static ZoneAndName fromZoneAndName(String zoneId, String name)
           
 String getName()
           
 String getZone()
           
 int hashCode()
           
 String slashEncode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_FUNCTION

public static final com.google.common.base.Function<ZoneAndName,String> NAME_FUNCTION

ZONE_FUNCTION

public static final com.google.common.base.Function<ZoneAndName,String> ZONE_FUNCTION

zoneId

protected final String zoneId

name

protected final String name
Constructor Detail

ZoneAndName

protected ZoneAndName(String zoneId,
                      String name)
Method Detail

fromSlashEncoded

public static ZoneAndName fromSlashEncoded(String name)

fromZoneAndName

public static ZoneAndName fromZoneAndName(String zoneId,
                                          String name)

slashEncode

public String slashEncode()

getZone

public String getZone()

getName

public String getName()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


Copyright © 2009-2012 jclouds. All Rights Reserved.