|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.base.GenericProperties<T>
T - the values type.public final class GenericProperties<T>
A simple generic properties object.
| Method Summary | ||
|---|---|---|
void |
addProperty(String name,
T value)
Add a new property with a name and a value. |
|
T |
getProperty(String name)
|
|
Set<String> |
getPropertyNames()
|
|
boolean |
hasProperty(String name)
|
|
static
|
newInstance()
the static factory method to get a new instance |
|
int |
size()
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static <T> GenericProperties<T> newInstance()
public void addProperty(String name,
T value)
name - the property name.value - the property value.public final boolean hasProperty(String name)
name.public final T getProperty(String name)
name - the property name.
public final int size()
public final Set<String> getPropertyNames()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||