Package com.exedio.cope.util
Class PropertiesInstance<P extends Properties>
- java.lang.Object
-
- com.exedio.cope.util.PropertiesInstance<P>
-
public final class PropertiesInstance<P extends Properties> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertiesInstance.NotSetException
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <P extends Properties>
PropertiesInstance<P>create(Properties.Factory<P> factory)
P
create(Properties.Source source)
P
get()
void
remove()
P
set(Properties.Source source)
P
set(P newValue)
-
-
-
Method Detail
-
create
public static <P extends Properties> PropertiesInstance<P> create(Properties.Factory<P> factory)
-
create
public P create(Properties.Source source)
-
set
public P set(Properties.Source source)
- Returns:
- Returns the instance set.
-
remove
public void remove()
-
get
public P get()
- Throws:
PropertiesInstance.NotSetException
- if no value has been set before.
-
-