All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.solovyev.android.properties.Properties Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package org.solovyev.android.properties;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Map;

public final class Properties {

	private Properties() {
		throw new AssertionError();
	}

	@Nonnull
	public static AProperty newProperty(@Nonnull String name, @Nullable String value) {
		return APropertyImpl.newInstance(name, value);
	}

	@Nonnull
	public static MutableAProperties newProperties(@Nonnull Collection properties) {
		return MutableAPropertiesImpl.newInstance(properties);
	}

	@Nonnull
	public static MutableAProperties newProperties(@Nonnull Map properties) {
		return MutableAPropertiesImpl.newInstance(properties);
	}

	@Nonnull
	public static MutableAProperties copyOf(@Nonnull MutableAProperties properties) {
		return MutableAPropertiesImpl.copyOf(properties);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy