Class Configuration


  • public class Configuration
    extends Object
    Class that can load a config file with default values and stores them
    Author:
    Darius Dinger
    • Constructor Detail

      • Configuration

        public Configuration()
    • Method Detail

      • getValuef

        public static float getValuef​(String id)
        Getting float value of setting Loggin an error and returning 1, if setting not found
        Parameters:
        id - Name or id of the Setting
        Returns:
        Setting as float
      • getValuei

        public static int getValuei​(String id)
        Getting int value of setting Loggin an error and returning 1, if setting not found
        Parameters:
        id - Name or id of the Setting
        Returns:
        Setting as int
      • getValues

        public static String getValues​(String id)
        Getting string value of setting Loggin an error and returning "", if setting not found
        Parameters:
        id - Name or id of the Setting
        Returns:
        Setting as string
      • getValuefa

        public static float[] getValuefa​(String id)
        Getting float array value of setting Loggin an error and returning {}, if setting not found
        Parameters:
        id - Name or id of the Setting
        Returns:
        Setting as float array