public class InfoProperties extends Object implements Iterable<InfoProperties.Entry>
| Modifier and Type | Class and Description |
|---|---|
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. |
Date |
getDate(String key)
|
Iterator<InfoProperties.Entry> |
iterator() |
org.springframework.core.env.PropertySource<?> |
toPropertySource()
Return a
PropertySource of this instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic InfoProperties(Properties entries)
entries - the information to exposepublic String get(String key)
null.key - the key of the propertypublic Date getDate(String key)
Date 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 org.springframework.core.env.PropertySource<?> toPropertySource()
PropertySource of this instance.PropertySourceCopyright © 2017 Pivotal Software, Inc.. All rights reserved.