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       * @param theName String
16       * @param theDescription String
17       * @param lower Number
18       * @param upper Number
19       * @param theDefault T
20       * @param theUIOrder float
21       */
22      protected AbstractMultiNumericProperty(String theName, String theDescription, Number lower, Number upper, T theDefault, float theUIOrder) {
23          super(theName, theDescription, lower, upper, theDefault, theUIOrder);
24      }
25  
26      /**
27       * @return boolean
28       * @see net.sourceforge.pmd.PropertyDescriptor#isMultiValue()
29       */
30      @Override
31      public boolean isMultiValue() {
32          return true;
33      }
34      
35      /**
36       * @return String
37       */
38      protected String defaultAsString() {
39          return asDelimitedString(defaultValue());
40      }
41  }