Class PokeApiExample.StatInfo

  • Enclosing class:
    PokeApiExample

    public static class PokeApiExample.StatInfo
    extends Object
    Stat information for a Pokémon
    • Constructor Detail

      • StatInfo

        public StatInfo()
    • 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)