@Gw2ApiVersion(value="v1") public class Continents extends HashMap<String,Continent>
Continent
s
as returned by
/v1/continents.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Continents() |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<Continent> |
getContinentWithId(int id)
Retrieve a continent from the list identified by its numeric id.
|
com.google.common.base.Optional<Continent> |
getContinentWithId(String id)
Retrieve a continent from the list identified by its numeric id
in string form.
|
com.google.common.base.Optional<Continent> |
getContinentWithName(String name)
Retrieve a continent from the list that has the given
name . |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public com.google.common.base.Optional<Continent> getContinentWithId(int id)
id
- The integer id for the continent to retrieve.Continent
wrapped in an Optional
or an empty
Optional
.public com.google.common.base.Optional<Continent> getContinentWithId(String id)
id
- The integer id as a string.Continent
wrapped in an Optional
or an empty
Optional
.public com.google.common.base.Optional<Continent> getContinentWithName(String name)
name
.name
- The in-game name of the continent to retrieve.Continent
wrapped in an Optional
or an empty
Optional
.Copyright © 2014. All Rights Reserved.