public void setDefaultProperties(Properties defaults) { this.defaults = new FlexibleProperties(defaults); }
public static FlexibleProperties makeFlexibleProperties(URL url, Properties properties) { return new FlexibleProperties(url, properties); }
public static FlexibleProperties makeFlexibleProperties(URL url) { return new FlexibleProperties(url); }
public static FlexibleProperties makeFlexibleProperties(Properties properties) { return new FlexibleProperties(properties); }
public static FlexibleProperties makeFlexibleProperties(Properties properties) { return new FlexibleProperties(properties); }
public static FlexibleProperties makeFlexibleProperties(URL url) { return new FlexibleProperties(url); }
public static FlexibleProperties makeFlexibleProperties(URL url, Properties properties) { return new FlexibleProperties(url, properties); }
public void setDefaultProperties(Properties defaults) { this.defaults = new FlexibleProperties(defaults); }
public static FlexibleProperties makeFlexibleProperties(String[] keysAndValues) { // if they gave me an odd number of elements if ((keysAndValues.length % 2) != 0) { throw new IllegalArgumentException("FlexibleProperties(String[] keysAndValues) cannot accept an odd number of elements!"); } Properties newProperties = new Properties(); for (int i = 0; i < keysAndValues.length; i += 2) { newProperties.setProperty(keysAndValues[i], keysAndValues[i + 1]); } return new FlexibleProperties(newProperties); }
public static FlexibleProperties makeFlexibleProperties(String[] keysAndValues) { // if they gave me an odd number of elements if ((keysAndValues.length % 2) != 0) { throw new IllegalArgumentException("FlexibleProperties(String[] keysAndValues) cannot accept an odd number of elements!"); } Properties newProperties = new Properties(); for (int i = 0; i < keysAndValues.length; i += 2) { newProperties.setProperty(keysAndValues[i], keysAndValues[i + 1]); } return new FlexibleProperties(newProperties); }