T - the property typepublic class ListProperty<T> extends BaseProperty<List<T>>
| Constructor and Description |
|---|
ListProperty(String path,
PropertyType<T> type,
List<T> defaultValue)
Constructor.
|
ListProperty(String path,
PropertyType<T> type,
T... defaultValue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<T> |
getFromReader(PropertyReader reader,
ConvertErrorRecorder errorRecorder)
Constructs the value of the property from the property reader.
|
Object |
toExportValue(List<T> value)
Converts the given value to a representation that is suitable for exporting by a property resource.
|
determineValue, getDefaultValue, getPath, isValidValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisValidInResource@SafeVarargs public ListProperty(String path, PropertyType<T> type, T... defaultValue)
path - the path of the propertytype - the property typedefaultValue - the entries in the list of the default valuepublic ListProperty(String path, PropertyType<T> type, List<T> defaultValue)
path - the path of the propertytype - the property typedefaultValue - the default value of the property@Nullable protected List<T> getFromReader(PropertyReader reader, ConvertErrorRecorder errorRecorder)
BasePropertygetFromReader in class BaseProperty<List<T>>reader - the reader to read fromerrorRecorder - error recorder to register errors even if a valid value is returnedpublic Object toExportValue(List<T> value)
Property
The values which are suitable for returning depend on the support of the used property resource. By default,
the supported types include null, String, Integer, Double, Boolean; Collection of the aforementioned
types; Map with String keys and values of any of the aforementioned types. Maps and collections can be nested at
any arbitrary level. Null signifies that the property/value should be skipped in the export.
value - the value to convert to an export valueCopyright © 2016–2021 The AuthMe Team. All rights reserved.