public class IntProp extends PropertyBase<Integer>
Integer configuration Property
Parsing values from strings is done by the IntType, which parses values using the
Integer.parseInt(String). Note that the parseInt accepts integer numbers
with the option of a leading '+' or '-'.
Before parsing String values, the TrimToNullTrimmer is applied by default.
| Modifier and Type | Class and Description |
|---|---|
static class |
IntProp.IntBuilder |
| Constructor and Description |
|---|
IntProp(Integer defaultValue,
boolean required,
String shortDesc,
List<Validator<Integer>> validators,
List<Name> aliases,
PropertyType paramType,
ValueType<Integer> valueType,
Trimmer trimmer,
String helpText) |
| Modifier and Type | Method and Description |
|---|---|
static IntProp.IntBuilder |
builder()
A chainable builder for this property that should terminate with
build() |
getDefaultValue, getDescription, getExplicitValue, getHelpText, getPropertyType, getRequestedAliases, getTrimmer, getValidators, getValue, getValueType, isNonNullRequiredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCanonicalName, getInAliases, getOutAliases, getValueAsString, isExplicitlySetpublic static IntProp.IntBuilder builder()
build()
Use as IntProp.builder()...series of builder methods...build();
Copyright © 2022. All rights reserved.