T - the set typepublic class SetProperty<T> extends BaseProperty<Set<T>>
| Constructor and Description |
|---|
SetProperty(@NotNull String path,
@NotNull PropertyType<T> type,
@NotNull Set<T> defaultValue)
Constructor.
|
SetProperty(@NotNull String path,
@NotNull PropertyType<T> type,
T... defaultValue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<T> |
getFromReader(@NotNull PropertyReader reader,
@NotNull ConvertErrorRecorder errorRecorder)
Constructs the value of the property from the property reader.
|
protected @NotNull Collector<T,?,Set<T>> |
setCollector() |
@NotNull Object |
toExportValue(@NotNull Set<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 SetProperty(@NotNull @NotNull String path, @NotNull @NotNull PropertyType<T> type, @NotNull T... defaultValue)
path - the path of the propertytype - the property typedefaultValue - the values that make up the entries of the default setpublic SetProperty(@NotNull
@NotNull String path,
@NotNull
@NotNull PropertyType<T> type,
@NotNull
@NotNull Set<T> defaultValue)
path - the path of the propertytype - the property typedefaultValue - the default value of the propertyprotected Set<T> getFromReader(@NotNull @NotNull PropertyReader reader, @NotNull @NotNull ConvertErrorRecorder errorRecorder)
BasePropertygetFromReader in class BaseProperty<Set<T>>reader - the reader to read fromerrorRecorder - error recorder to register errors even if a valid value is returned@NotNull public @NotNull Object toExportValue(@NotNull @NotNull Set<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–2023 The AuthMe Team. All rights reserved.