Home | History | Annotate | Download | only in collect

Lines Matching refs:Properties

41 import java.util.Properties;
462 * Creates an {@code ImmutableMap<String, String>} from a {@code Properties}
463 * instance. Properties normally derive from {@code Map<Object, Object>}, but
465 * a plain-old-{@code Map} out of a {@code Properties}.
467 * @param properties a {@code Properties} object to be converted
469 * {@code properties}
470 * @throws ClassCastException if any key in {@code Properties} is not a
472 * @throws NullPointerException if any key or value in {@code Properties} is
476 fromProperties(Properties properties) {
479 for (Enumeration<?> e = properties.propertyNames(); e.hasMoreElements();) {
481 builder.put(key, properties.getProperty(key));
701 * other properties of the map, such as iteration order, are left intact. For