P
- Concrete type of the properties contained in the setpublic static interface PropertySet.Builder<P extends Property>
PropertySet
instances.Modifier and Type | Method and Description |
---|---|
<PT extends P> |
add(Iterable<PT> properties)
Add all the properties provided by given
Iterable to the set. |
<PT extends P> |
add(PT property)
Add a property to the set.
|
PropertySet<P> |
build()
Build
PropertySet instance |
default <C> PropertySet.Builder<P> |
configuration(ConfigProperty<C> configurationProperty,
C value)
Deprecated.
|
default PropertySet.Builder<P> |
configuration(String name,
Object value)
Deprecated.
|
<PT extends P> |
identifier(PT property)
Add given
property to the property set identifiers. |
<PT extends P> |
identifiers(Iterable<PT> properties)
Set given
properties as property set identifiers. |
default PropertySet.Builder<P> |
identifiers(P... properties)
Set given
properties as property set identifiers. |
<PT extends P> |
remove(Iterable<PT> properties)
Remove all the properties provided by given
Iterable from the set. |
<PT extends P> |
remove(PT property)
Remove a property from the set.
|
default <C> PropertySet.Builder<P> |
withConfiguration(ConfigProperty<C> configurationProperty,
C value)
Add a
PropertySet configuration parameter using a ConfigProperty , with
ConfigProperty.getKey() as parameter name. |
PropertySet.Builder<P> |
withConfiguration(String name,
Object value)
Add a
PropertySet configuration parameter |
<PT extends P> PropertySet.Builder<P> add(PT property)
PT
- Actual property typeproperty
- The property to add (not null)<PT extends P> PropertySet.Builder<P> add(Iterable<PT> properties)
Iterable
to the set.PT
- Actual property typeproperties
- Properties Iterable
to add (not null)<PT extends P> PropertySet.Builder<P> remove(PT property)
PT
- Actual property typeproperty
- The property to remove (not null)<PT extends P> PropertySet.Builder<P> remove(Iterable<PT> properties)
Iterable
from the set.PT
- Actual property typeproperties
- Properties Iterable
to remove (not null)<PT extends P> PropertySet.Builder<P> identifier(PT property)
property
to the property set identifiers.
The property to declare as identifier must be already present in the property set.
PT
- Actual property typeproperty
- The property to declare as property set identifier (not null)IllegalStateException
- If the property to declare as identifier is not part of the property set<PT extends P> PropertySet.Builder<P> identifiers(Iterable<PT> properties)
properties
as property set identifiers. Any previously declared identifier property
will be replaced by given identifier properties.
The properties to declare as identifiers must be already present in the property set.
PT
- Actual property typeproperties
- The properties to declare as property set identifiers (not null)IllegalStateException
- If one of the properties to declare as identifier is not part of the property
setdefault PropertySet.Builder<P> identifiers(P... properties)
properties
as property set identifiers. Any previously declared identifier property
will be replaced by given identifier properties.
The properties to declare as identifiers must be already present in the property set.
properties
- The properties to declare as property set identifiers (not null)IllegalStateException
- If one of the properties to declare as identifier is not part of the property
setPropertySet.Builder<P> withConfiguration(String name, Object value)
PropertySet
configuration parametername
- The parameter name to add (not null)value
- The configuration parameter value@Deprecated default PropertySet.Builder<P> configuration(String name, Object value)
withConfiguration(String, Object)
PropertySet
configuration parametername
- The parameter name to add (not null)value
- The configuration parameter valuedefault <C> PropertySet.Builder<P> withConfiguration(ConfigProperty<C> configurationProperty, C value)
PropertySet
configuration parameter using a ConfigProperty
, with
ConfigProperty.getKey()
as parameter name.C
- Config property typeconfigurationProperty
- The ConfigProperty
to add (not null)value
- The configuration property value@Deprecated default <C> PropertySet.Builder<P> configuration(ConfigProperty<C> configurationProperty, C value)
withConfiguration(ConfigProperty, Object)
PropertySet
configuration parameter using a ConfigProperty
, with
ConfigProperty.getKey()
as parameter name.C
- Config property typeconfigurationProperty
- The ConfigProperty
to add (not null)value
- The configuration property valuePropertySet<P> build()
PropertySet
instanceCopyright © 2019 The Holon Platform. All rights reserved.