public TypedProperties create(Properties properties) { return new TypedProperties(properties); } }
public Boolean getBooleanProperty(String key) { return typedProperties.getBooleanProperty(key); }
public Character getCharProperty(String key, Character defaultValue) { return typedProperties.getCharProperty(key, defaultValue); }
/** * Returns a boolean property. * * @param key * the property key. * * @return the {@link Boolean} from the property or {@code null} if no * property with the key was found. */ public Boolean getBooleanProperty(String key) { String property = getProperty(key); return property == null ? null : parseBoolean(property); }
public <T> List<T> getTypedListProperty(String key, Format format, String separatorChars) throws ParseException { return typedProperties.getTypedListProperty(key, format, separatorChars); }
String separatorChars) throws ParseException { List<T> list = new ArrayList<T>(); String property = getProperty(key); if (property == null) { return list; addParsedObject(list, format, value);
/** * Returns a list property. * * @param key * the property key. * * @return the {@link List} from the property or an empty list if no * property with the key was found. */ public List<String> getListProperty(String key) { return getListProperty(key, listSepChars); }
public Number getNumberProperty(String key, Number defaultValue) { return typedProperties.getNumberProperty(key, defaultValue); }
public File getFileProperty(String key) { return typedProperties.getFileProperty(key); }
public Charset getCharsetProperty(String key) { return typedProperties.getCharsetProperty(key); }
/** * Returns a number property. * * @param key * the property key. * * @return the {@link Number} from the property or {@code null} if no * property with the key was found. */ public Number getNumberProperty(String key) { String property = getProperty(key); return property == null ? null : parseDouble(property); }
public <T> List<T> getTypedListProperty(String key, StringToType<T> stringToType, List<T> defaultValue, String separatorChars) throws ParseException { return typedProperties.getTypedListProperty(key, stringToType, defaultValue, separatorChars); }
List<T> defaultValue, String separatorChars) throws ParseException { List<T> list = new ArrayList<T>(); String property = getProperty(key, join(defaultValue, ",")); for (String value : split(property, listSepChars)) { addParsedObject(list, format, value);
public List<String> getListProperty(String key, List<String> defaultValue, String separatorChars) { return typedProperties.getListProperty(key, defaultValue, separatorChars); }
public Number getNumberProperty(String key) { return typedProperties.getNumberProperty(key); }
public File getFileProperty(String key, File defaultValue) { return typedProperties.getFileProperty(key, defaultValue); }
public Charset getCharsetProperty(String key, Charset defaultValue) { return typedProperties.getCharsetProperty(key, defaultValue); }
/** * Returns a File property. * * @param key * the property key. * * @return the {@link File} from the property or {@code null} if no property * with the key was found. */ public File getFileProperty(String key) { String property = getProperty(key); return property == null ? null : new File(property); }
public <T> List<T> getTypedListProperty(String key, Format format, List<T> defaultValue, String separatorChars) throws ParseException { return typedProperties.getTypedListProperty(key, format, defaultValue, separatorChars); }
public List<String> getListProperty(String key, String separatorChars) { return typedProperties.getListProperty(key, separatorChars); }