org.jclouds.joyent.cloudapi.v6_5.domain.datacenterscoped
Class DatacenterAndId

java.lang.Object
  extended by org.jclouds.joyent.cloudapi.v6_5.domain.datacenterscoped.DatacenterAndId
Direct Known Subclasses:
DatasetInDatacenter, MachineInDatacenter

public class DatacenterAndId
extends Object

Author:
Adrian Cole

Field Summary
protected  String datacenterId
           
protected  String id
           
 
Constructor Summary
protected DatacenterAndId(String datacenterId, String id)
           
 
Method Summary
 boolean equals(Object obj)
           
static DatacenterAndId fromDatacenterAndId(String datacenterId, String id)
           
static DatacenterAndId fromSlashEncoded(String id)
           
 String getDatacenter()
           
 String getId()
           
 int hashCode()
           
 String slashEncode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

datacenterId

protected final String datacenterId

id

protected final String id
Constructor Detail

DatacenterAndId

protected DatacenterAndId(String datacenterId,
                          String id)
Method Detail

fromSlashEncoded

public static DatacenterAndId fromSlashEncoded(String id)

fromDatacenterAndId

public static DatacenterAndId fromDatacenterAndId(String datacenterId,
                                                  String id)

slashEncode

public String slashEncode()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

getDatacenter

public String getDatacenter()

getId

public String getId()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.