/** * Parse the given attribute as a set of integer ranges. * @param name the attribute name * @throws NullPointerException if the configuration property does not exist * @return a new set of ranges from the configured value */ public IntegerRanges getRange(String name) { String valueString = get(name); Preconditions.checkNotNull(valueString); return new IntegerRanges(valueString); }
/** * Parse the given attribute as a set of integer ranges. * @param name the attribute name * @throws NullPointerException if the configuration property does not exist * @return a new set of ranges from the configured value */ public IntegerRanges getRange(String name) { String valueString = get(name); Preconditions.checkNotNull(valueString); return new IntegerRanges(valueString); }
/** * Parse the given attribute as a set of integer ranges. * @param name the attribute name * @param defaultValue the default value if it is not set * @return a new set of ranges from the configured value */ public IntegerRanges getRange(String name, String defaultValue) { return new IntegerRanges(get(name, defaultValue)); }
/** * Parse the given attribute as a set of integer ranges. * @param name the attribute name * @param defaultValue the default value if it is not set * @return a new set of ranges from the configured value */ public IntegerRanges getRange(String name, String defaultValue) { return new IntegerRanges(get(name, defaultValue)); }