| Constructor and Description |
|---|
PropertyContainer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
has(String name)
Specify if this container has a property with the specified name.
|
boolean |
isEmpty()
Specify if this container is empty.
|
PropertyContainer |
property(String name,
String value)
Register a property with the specified
name and value. |
Stream<Map.Entry<String,String>> |
values()
Return the registered properties.
|
PropertyContainer |
version(String name,
String version)
Register a public
VersionProperty with the specified name. |
PropertyContainer |
version(VersionProperty versionProperty,
String version)
Register a property that refers to the specified
version. |
Stream<Map.Entry<String,String>> |
versions(Function<VersionProperty,String> nameFactory)
Return the registered versions using the specified
nameFactory. |
public boolean isEmpty()
true if no property is registeredpublic boolean has(String name)
name - the name of a propertytrue if a property with the specified name is registeredpublic PropertyContainer property(String name, String value)
name and value. If a
property with that name already exists, its value is overridden by the
specified value.name - the name of a propertyvalue - the value of the propertyto register a property that refers to a versionpublic PropertyContainer version(VersionProperty versionProperty, String version)
version.
If a version with the same VersionProperty already exists, its value is
overridden by the specified version.versionProperty - the name of a versionversion - the versionpublic PropertyContainer version(String name, String version)
VersionProperty with the specified name. If a
version with the same name already exists, its value is overridden by the
specified version.name - the public name of a versionversion - the versionVersionProperty.isInternal()public Stream<Map.Entry<String,String>> values()
public Stream<Map.Entry<String,String>> versions(Function<VersionProperty,String> nameFactory)
nameFactory.nameFactory - the factory to use to generate a version name based on a
VersionPropertyCopyright © 2022 Pivotal Software, Inc.. All rights reserved.