public interface PropertyReader
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String path)
Returns whether a value is present for the given path.
|
Boolean |
getBoolean(String path)
Returns the value of the given path as a boolean if available.
|
Double |
getDouble(String path)
Returns the value of the given path as a double if available.
|
Integer |
getInt(String path)
Returns the value of the given path as an integer if available.
|
Set<String> |
getKeys(boolean onlyLeafNodes)
Returns the keys available in the file.
|
List<?> |
getList(String path)
Returns the value of the given path as a list if available.
|
Object |
getObject(String path)
Returns the object at the given path, or null if absent.
|
String |
getString(String path)
Returns the value of the given path as a String if available.
|
boolean contains(String path)
Property.isPresent(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 checkSet<String> getKeys(boolean onlyLeafNodes)
onlyLeafNodes - true if only the paths of leaf nodes should be returned (no intermediate paths)@Nullable Object getObject(String path)
path - the path to retrieve the value for@Nullable String getString(String path)
path - the path to retrieve a String for@Nullable Integer getInt(String path)
path - the path to retrieve an integer for@Nullable Double getDouble(String path)
path - the path to retrieve a double for@Nullable Boolean getBoolean(String path)
path - the path to retrieve a boolean forCopyright © 2016–2018 The AuthMe Team. All rights reserved.