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
-
Constructor Summary
-
Method Summary
-
Field Details
-
name
The name of this property. -
type
-
def
The default value of this property.
-
-
Constructor Details
-
Property
Creates aProperty
withnull
as its default value.- Parameters:
name
- the name of the propertytype
- the class of the value of the property- Throws:
IllegalArgumentException
- ifname
ortype
isnull
-
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
- ifname
ortype
is {code{ null}
-
-
Method Details
-
hashCode
-
equals
-