public class InfoProperties extends Object implements Iterable<InfoProperties.Entry>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | InfoProperties.EntryProperty 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() | 
| org.springframework.core.env.PropertySource<?> | toPropertySource()Return a  PropertySourceof 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 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 org.springframework.core.env.PropertySource<?> toPropertySource()
PropertySource of this instance.PropertySourceCopyright © 2020 Pivotal Software, Inc.. All rights reserved.