diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyFactory.java b/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyFactory.java index 108f1b017f..0458252d14 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyFactory.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyFactory.java @@ -83,7 +83,10 @@ public final class PropertyFactory { * Returns a builder for an integer property. The property descriptor * will by default accept any value conforming to the format specified * by {@link Integer#parseInt(String)}, e.g. {@code 1234} or {@code -123}. - * Acceptable values may be further refined by {@linkplain PropertyBuilder#require(PropertyConstraint) adding constraints}. + * + *
Note that that parser only supports decimal representations. + * + *
Acceptable values may be further refined by {@linkplain PropertyBuilder#require(PropertyConstraint) adding constraints}. * The class {@link NumericConstraints} provides some useful ready-made constraints * for that purpose. * @@ -111,6 +114,43 @@ public final class PropertyFactory { } + /** + * Returns a builder for a long integer property. The property descriptor + * will by default accept any value conforming to the format specified + * by {@link Long#parseLong(String)}, e.g. {@code 1234455678854}. + * + *
Note that that parser only supports decimal representations, and that neither + * the character L nor l is permitted to appear at the end of the string as a type + * indicator, as would be permitted in Java source. + * + *
Acceptable values may be further refined by {@linkplain PropertyBuilder#require(PropertyConstraint) adding constraints}.
+ * The class {@link NumericConstraints} provides some useful ready-made constraints
+ * for that purpose.
+ *
+ * @param name Name of the property to build
+ *
+ * @return A new builder
+ *
+ * @see NumericConstraints
+ */
+ public static GenericPropertyBuilder