View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.rule.properties;
5   
6   /**
7    * 
8    * @author Brian Remedios
9    * @param <T>
10   */
11  public abstract class AbstractMultiNumericProperty<T> extends AbstractNumericProperty<T> {
12  
13      /**
14       * Constructor for AbstractMultiNumericProperty.
15       * 
16       * @param theName String
17       * @param theDescription String
18       * @param lower Number
19       * @param upper Number
20       * @param theDefault T
21       * @param theUIOrder float
22       */
23      protected AbstractMultiNumericProperty(String theName, String theDescription, Number lower, Number upper,
24              T theDefault, float theUIOrder) {
25          super(theName, theDescription, lower, upper, theDefault, theUIOrder);
26      }
27  
28      /**
29       * @return boolean
30       * @see net.sourceforge.pmd.PropertyDescriptor#isMultiValue()
31       */
32      @Override
33      public boolean isMultiValue() {
34          return true;
35      }
36  
37      /**
38       * @return String
39       */
40      protected String defaultAsString() {
41          return asDelimitedString(defaultValue());
42      }
43  }