Package VASSAL.property
Class Property<T>
java.lang.Object
VASSAL.property.Property<T>
- Type Parameters:
T- the class of the value of thisProperty
public final class Property<T> extends Object
Represents a named property with a specified type.
A
Property may optionally specify a default value, to be
used when no other value is available.- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Field Details
-
Constructor Details
-
Property
Creates aPropertywithnullas its default value.- Parameters:
name- the name of the propertytype- the class of the value of the property- Throws:
IllegalArgumentException- ifnameortypeisnull
-
Property
Creates aProperty.- Parameters:
name- the name of the propertytype- the class of the value of the propertydef- the default value of the property- Throws:
IllegalArgumentException- ifnameortypeis {@code{ null}
-
-
Method Details