public interface PropertyReader
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(@NotNull String path)
Returns whether a value is present for the given path.
|
@Nullable Boolean |
getBoolean(@NotNull String path)
Returns the value of the given path as a boolean if available.
|
@NotNull Set<String> |
getChildKeys(@NotNull String path)
Returns the direct children of the given path which are available in the file.
|
@Nullable Double |
getDouble(@NotNull String path)
Returns the value of the given path as a double if available.
|
@Nullable Integer |
getInt(@NotNull String path)
Returns the value of the given path as an integer if available.
|
@NotNull Set<String> |
getKeys(boolean onlyLeafNodes)
Returns the keys available in the file.
|
@Nullable List<?> |
getList(@NotNull String path)
Returns the value of the given path as a list if available.
|
@Nullable Object |
getObject(@NotNull String path)
Returns the object at the given path, or null if absent.
|
@Nullable String |
getString(@NotNull String path)
Returns the value of the given path as a String if available.
|
boolean contains(@NotNull
@NotNull String path)
Property.determineValue(PropertyReader) should be favored over
calling this method as it may make more type-aware checks. This method simply returns whether some value
exists under the given path.path - the path to check@NotNull @NotNull Set<String> getKeys(boolean onlyLeafNodes)
onlyLeafNodes - true if only the paths of leaf nodes should be returned (no intermediate paths)@NotNull @NotNull Set<String> getChildKeys(@NotNull @NotNull String path)
path - the path whose direct child paths should be looked up@Nullable @Nullable Object getObject(@NotNull @NotNull String path)
path - the path to retrieve the value for@Nullable @Nullable String getString(@NotNull @NotNull String path)
path - the path to retrieve a String for@Nullable @Nullable Integer getInt(@NotNull @NotNull String path)
path - the path to retrieve an integer for@Nullable @Nullable Double getDouble(@NotNull @NotNull String path)
path - the path to retrieve a double for@Nullable @Nullable Boolean getBoolean(@NotNull @NotNull String path)
path - the path to retrieve a boolean forCopyright © 2016–2023 The AuthMe Team. All rights reserved.