public class Property<T>
extends java.lang.Object
| Constructor and Description |
|---|
Property() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Property<T> |
named(java.lang.String name)
Creates a new instance of the Property class with no default value.
|
static <T> Property<T> |
named(java.lang.String name,
T defaultValue)
Creates a new instance of the Property class with the given default value.
|
java.lang.String |
toString() |
public static <T> Property<T> named(java.lang.String name)
T - The type of the property values.name - The name of the property.public static <T> Property<T> named(java.lang.String name, T defaultValue)
T - The type of the property values.name - The name of the property.defaultValue - The default value of the property.public java.lang.String toString()
toString in class java.lang.Object