public class PropertyListBuilder extends Object
It guarantees that the added entries:
| Constructor and Description |
|---|
PropertyListBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(@NotNull Property<?> property)
Adds the property to the list builder.
|
@NotNull List<Property<?>> |
create()
Creates a list of properties that have been added, by insertion order but grouped by path parents
(see class JavaDoc).
|
protected @NotNull Map<String,Object> |
getMapBeforeLastElement(String[] pathParts)
Returns the nested map for the given path parts in which a property can be saved (for the last element
in the path parts).
|
protected @NotNull Map<String,Object> |
getRootEntries() |
protected void |
throwExceptionForMalformedPath(@NotNull String path) |
public void add(@NotNull
@NotNull Property<?> property)
property - the property to add@NotNull public @NotNull List<Property<?>> create()
@NotNull protected @NotNull Map<String,Object> getMapBeforeLastElement(String[] pathParts)
pathParts - the path elements (i.e. the property path split by ".")protected void throwExceptionForMalformedPath(@NotNull
@NotNull String path)
Copyright © 2016–2023 The AuthMe Team. All rights reserved.