Package VASSAL.property
Class Property<T>
java.lang.Object
VASSAL.property.Property<T>
- Type Parameters:
T- the class of the value of thisProperty
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
The name of this property. -
type
-
def
The default value of this property.
-
-
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
-
hashCode
-
equals
-