/** * Returns the value at the specified key. * * @param key the key * @param defaultValue returned if the key doesn't exist * @return the value * @throws IllegalArgumentException if the value mapped to by the key is not a boolean * @throws IllegalArgumentException if the key is null */ public static boolean getBoolean(String key, boolean defaultValue) { return table.getBoolean(key, defaultValue); }
/** * Returns the value at the specified key. * * @param key the key * @return the value * @throws NetworkTableKeyNotDefined if there is no value mapped to by the key * @throws IllegalArgumentException if the value mapped to by the key is not a boolean * @throws IllegalArgumentException if the key is null */ public static boolean getBoolean(String key) throws TableKeyNotDefinedException { return table.getBoolean(key); }