Package com.guinetik.examples
Class PokeApiExample.StatInfo
- java.lang.Object
-
- com.guinetik.examples.PokeApiExample.StatInfo
-
- Enclosing class:
- PokeApiExample
public static class PokeApiExample.StatInfo extends Object
Stat information for a Pokémon
-
-
Constructor Summary
Constructors Constructor Description StatInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBase_stat()Gets the base stat value directly.intgetBaseStat()Gets the base stat value.intgetEffort()PokeApiExample.NamedResourcegetStat()voidsetBase_stat(int base_stat)Sets the base stat value directly.voidsetBaseStat(int baseStat)Sets the base stat value.voidsetEffort(int effort)voidsetStat(PokeApiExample.NamedResource stat)StringtoString()
-
-
-
Method Detail
-
getBaseStat
public int getBaseStat()
Gets the base stat value. The field is named base_stat in JSON but we use camelCase for Java methods.- Returns:
- The base stat value
-
getBase_stat
public int getBase_stat()
Gets the base stat value directly. This method is added for direct access to the field.- Returns:
- The base stat value
-
setBaseStat
public void setBaseStat(int baseStat)
Sets the base stat value.- Parameters:
baseStat- The base stat value
-
setBase_stat
public void setBase_stat(int base_stat)
Sets the base stat value directly.- Parameters:
base_stat- The base stat value
-
getEffort
public int getEffort()
-
setEffort
public void setEffort(int effort)
-
getStat
public PokeApiExample.NamedResource getStat()
-
setStat
public void setStat(PokeApiExample.NamedResource stat)
-
-