public class InfoProperties extends java.lang.Object implements java.lang.Iterable<InfoProperties.Entry>
| Modifier and Type | Class and Description |
|---|---|
static class |
InfoProperties.Entry
Property entry.
|
| Constructor and Description |
|---|
InfoProperties(java.util.Properties entries)
Create an instance with the specified entries.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(java.lang.String key)
Return the value of the specified property or
null. |
java.time.Instant |
getInstant(java.lang.String key)
Return the value of the specified property as an
Instant or null if
the value is not a valid Long representation of an epoch time. |
java.util.Iterator<InfoProperties.Entry> |
iterator() |
org.springframework.core.env.PropertySource<?> |
toPropertySource()
Return a
PropertySource of this instance. |
public InfoProperties(java.util.Properties entries)
entries - the information to exposepublic java.lang.String get(java.lang.String key)
null.key - the key of the propertypublic java.time.Instant getInstant(java.lang.String key)
Instant or null if
the value is not a valid Long representation of an epoch time.key - the key of the propertypublic java.util.Iterator<InfoProperties.Entry> iterator()
iterator in interface java.lang.Iterable<InfoProperties.Entry>public org.springframework.core.env.PropertySource<?> toPropertySource()
PropertySource of this instance.PropertySource