Package VASSAL.build.module.properties
Class SumProperties
java.lang.Object
VASSAL.build.module.properties.SumProperties
- All Implemented Interfaces:
PropertySource
public class SumProperties extends Object implements PropertySource
For property names of the form sum(name), returns the value of
the named property summed over a list of pieces.
- Author:
- rkinney
-
Field Summary
Fields Modifier and Type Field Description protected Collection<GamePiece>
pieces
-
Constructor Summary
Constructors Constructor Description SumProperties(Collection<GamePiece> pieces)
-
Method Summary
Modifier and Type Method Description Object
getLocalizedProperty(Object key)
Object
getProperty(Object key)
-
Field Details
-
pieces
-
-
Constructor Details
-
SumProperties
-
-
Method Details
-
getProperty
- Specified by:
getProperty
in interfacePropertySource
-
getLocalizedProperty
- Specified by:
getLocalizedProperty
in interfacePropertySource
-