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

se.l4.commons.config.Value Maven / Gradle / Ivy

The newest version!
package se.l4.commons.config;

/**
 * Value within a configuration.
 * 
 * @author Andreas Holstenson
 *
 * @param 
 */
public interface Value
{
	/**
	 * Get the current value.
	 * 
	 * @return
	 */
	T get();
	
	/**
	 * Get the current value or return a default value if it is not set.
	 * 
	 * @param defaultInstance
	 * @return
	 */
	T getOrDefault(T defaultInstance);
	
	/**
	 * Get if this value exists.
	 * 
	 * @return
	 */
	boolean exists();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy