|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.digitalocean.compute.util.LocationNamingUtils
public class LocationNamingUtils
Utility class to encode and decode the region id and name in a Location.
| Constructor Summary | |
|---|---|
LocationNamingUtils()
|
|
| Method Summary | |
|---|---|
static String |
encodeRegionIdAndName(Region region)
Encodes the id and name of the given region into a String so it can be populated in a Location object. |
static int |
extractRegionId(org.jclouds.domain.Location location)
Extracts the region id for the given location. |
static String |
extractRegionName(org.jclouds.domain.Location location)
Extracts the region name for the given location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocationNamingUtils()
| Method Detail |
|---|
public static int extractRegionId(org.jclouds.domain.Location location)
location - The location to extract the region id from.
public static String extractRegionName(org.jclouds.domain.Location location)
location - The location to extract the region name from.
public static String encodeRegionIdAndName(Region region)
Location object.
region - The region to encode.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||