01 package net.sourceforge.pmd.lang.rule.properties;
02
03 /**
04 *
05 * @author Brian Remedios
06 */
07 public abstract class AbstractMultiNumericProperty<T> extends AbstractNumericProperty<T> {
08
09 /**
10 * Constructor for AbstractMultiNumericProperty.
11 * @param theName String
12 * @param theDescription String
13 * @param lower Number
14 * @param upper Number
15 * @param theDefault T
16 * @param theUIOrder float
17 */
18 protected AbstractMultiNumericProperty(String theName, String theDescription, Number lower, Number upper, T theDefault, float theUIOrder) {
19 super(theName, theDescription, lower, upper, theDefault, theUIOrder);
20 }
21
22 /**
23 * @return boolean
24 * @see net.sourceforge.pmd.PropertyDescriptor#isMultiValue()
25 */
26 @Override
27 public boolean isMultiValue() {
28 return true;
29 }
30
31 /**
32 * @return String
33 */
34 protected String defaultAsString() {
35 return asDelimitedString(defaultValue());
36 }
37 }
|