| Modifier and Type | Field and Description |
|---|---|
| public static final BiFunction |
| Modifier and Type | Method and Description |
|---|---|
| public default <T extends PropertyContainer> T | |
| public default <T extends PropertyContainer> T | Returns: a reference to the container to support method chaininga collection of properties to add properties)Add multiple properties to the container. |
| public default <T extends PropertyContainer> T | |
| public default <T extends PropertyContainer> T | |
| public default <T extends PropertyContainer> T | |
| public default <T extends PropertyContainer> T | |
| public void | |
| public default <T extends PropertyContainer, P> T | with(BiFunction<T, P, T> f, P p)
A functional method used to apply a property to a container in an undefined way. |
| ADD_IF_NOT_PRESENT | back to summary |
|---|---|
| public static final BiFunction<PropertyContainer, Property, PropertyContainer> ADD_IF_NOT_PRESENT | |
| add | back to summary |
|---|---|
| public default <T extends PropertyContainer> T add(@NotNull Property property) Add a property to the container. | |
| addAll | back to summary |
|---|---|
| public default <T extends PropertyContainer> T addAll(@NotNull Collection<Property> properties) Add multiple properties to the container.
| |
| remove | back to summary |
|---|---|
| public default <T extends PropertyContainer> T remove(Property property) Remove a property from the container.
| |
| removeAll | back to summary |
|---|---|
| public default <T extends PropertyContainer> T removeAll(String... name) Remove all properties with the matching name.
| |
| removeIf | back to summary |
|---|---|
| public default <T extends PropertyContainer> T removeIf(Predicate<Property> filter) Remove all properties matching the specified filter. | |
| replace | back to summary |
|---|---|
| public default <T extends PropertyContainer> T replace(Property property) Add a property to the container whilst removing all other properties with the same property name.
| |
| setPropertyList | back to summary |
|---|---|
| public void setPropertyList(PropertyList properties) | |
| with | back to summary |
|---|---|
| public default <T extends PropertyContainer, P> T with(BiFunction<T, P, T> f, P p) A functional method used to apply a property to a container in an undefined way. For example, a null check can be introduced as follows: container.with((c, p) -> if (p != null) c.add(p); return c;) | |