public class SLPropertiesImpl extends Object implements SLProperties
SLProperties backed by a Map. In addition to the methods exposed in
SLProperties it also offers the methods addProperty(String, Iterable) and
{@link #addProperty(String, String...) to actually add properties.| Modifier and Type | Field and Description |
|---|---|
static SLProperties |
EMPTY_PROPERTIES |
| Constructor and Description |
|---|
SLPropertiesImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String name,
Iterable<String> values)
Add a property with the given name and the given collection of values to this Properties object.
|
void |
addProperty(String name,
String... values)
Add a property with the given name and the given list of values to this Properties object.
|
Collection<String> |
getPropertyNames() |
Collection<String> |
getValues(String name) |
boolean |
hasProperty(String name) |
boolean |
includesValues(String name,
Collection<String> values) |
boolean |
includesValues(String name,
String... values) |
public static final SLProperties EMPTY_PROPERTIES
public void addProperty(String name, String... values)
name - the name of the property, must not be null.values - the values of the property, must no be null,
none of the values must be nullpublic void addProperty(String name, Iterable<String> values)
name - the name of the property, must not be null.values - the values of the property, must no be null,
none of the values must be nullpublic Collection<String> getPropertyNames()
getPropertyNames in interface SLPropertiespublic boolean hasProperty(String name)
hasProperty in interface SLPropertiespublic Collection<String> getValues(String name)
getValues in interface SLPropertiespublic boolean includesValues(String name, String... values)
includesValues in interface SLPropertiespublic boolean includesValues(String name, Collection<String> values)
includesValues in interface SLPropertiesCopyright © 2011–2018 Talend Inc.. All rights reserved.