| Constructor and Description |
|---|
LowercaseStringSetProperty(String path,
Collection<String> defaultEntries)
Constructor.
|
LowercaseStringSetProperty(String path,
String... defaultEntries)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
convertToLowercaseString(Object value) |
protected Set<String> |
getFromReader(PropertyReader reader)
Constructs the value of the property from the property reader.
|
boolean |
isPresent(PropertyReader reader)
Returns true if a valid value for this property is present in the property reader, i.e.
|
Object |
toExportValue(Set<String> value)
Converts the given value to a representation that is suitable for exporting by a property resource.
|
protected static Set<String> |
toLowercaseLinkedHashSet(Stream<String> valuesStream) |
determineValue, getDefaultValue, getPath, isValidValue, toStringpublic LowercaseStringSetProperty(String path, String... defaultEntries)
path - property pathdefaultEntries - entries in the Set that is the default valuepublic LowercaseStringSetProperty(String path, Collection<String> defaultEntries)
path - property pathdefaultEntries - entries in the Set that is the default valueprotected Set<String> getFromReader(PropertyReader reader)
BasePropertygetFromReader in class BaseProperty<Set<String>>reader - the reader to read frompublic boolean isPresent(PropertyReader reader)
Propertypublic Object toExportValue(Set<String> 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–2018 The AuthMe Team. All rights reserved.