public class InfoProperties extends Object implements Iterable<InfoProperties.Entry>
Modifier and Type | Class and Description |
---|---|
static class |
InfoProperties.Entry
Property entry.
|
Constructor and Description |
---|
InfoProperties(Properties entries)
Create an instance with the specified entries.
|
Modifier and Type | Method and Description |
---|---|
String |
get(String key)
Return the value of the specified property or
null . |
Instant |
getInstant(String key)
|
Iterator<InfoProperties.Entry> |
iterator() |
PropertySource<?> |
toPropertySource()
Return a
PropertySource of this instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public InfoProperties(Properties entries)
entries
- the information to exposepublic String get(String key)
null
.key
- the key of the propertypublic Instant getInstant(String key)
Instant
or null
if
the value is not a valid Long
representation of an epoch time.key
- the key of the propertypublic Iterator<InfoProperties.Entry> iterator()
iterator
in interface Iterable<InfoProperties.Entry>
public PropertySource<?> toPropertySource()
PropertySource
of this instance.PropertySource