public class LngProp extends PropertyBase<Long>
Long configuration Property
Parsing values from strings is done by the LngType, which parses values using the
Long.parseLong(String). Note that the parseLong method
does not accept a trailing 'L' or 'l' as the Java literal does.
E.g., this is the correct way to spec a Long value in a properties file:
name.of.my.long.property.MY_PROPERTY = 90
Before parsing String values, the TrimToNullTrimmer is applied by default.
| Modifier and Type | Class and Description |
|---|---|
static class |
LngProp.LngBuilder |
| Constructor and Description |
|---|
LngProp(Long defaultValue,
boolean required,
String shortDesc,
List<Validator<Long>> validators,
List<Name> aliases,
PropertyType paramType,
ValueType<Long> valueType,
Trimmer trimmer,
String helpText) |
| Modifier and Type | Method and Description |
|---|---|
static LngProp.LngBuilder |
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 LngProp.LngBuilder builder()
build()
Use as LngProp.builder()...series of builder methods...build();
Copyright © 2022. All rights reserved.