public class CompositePropertyIndexSupplier extends Object implements PropertyIndexSupplier
PropertyIndexSupplier managing delegates of its own type.| Modifier and Type | Class and Description |
|---|---|
static class |
CompositePropertyIndexSupplier.Builder
Convenience component making use of the Builder Pattern to instantiate a new
CompositePropertyIndexSupplier. |
| Constructor and Description |
|---|
CompositePropertyIndexSupplier() |
| Modifier and Type | Method and Description |
|---|---|
static CompositePropertyIndexSupplier.Builder |
builder()
Creates a new
CompositePropertyIndexSupplier.Builder throwing an exception lazily in case get() encounters duplicate keys while
merging the underlying delegates. |
Map<String,String> |
get()
Merges and returns a map of all delegates this component holds.
|
static CompositePropertyIndexSupplier.Builder |
keeping()
Creates a new
CompositePropertyIndexSupplier.Builder keeping existing values of duplicate keys during merge. |
static CompositePropertyIndexSupplier.Builder |
overriding()
Creates a new
CompositePropertyIndexSupplier.Builder overriding existing values of duplicate keys during merge. |
UnaryOperator<String> |
substitute(PropertyResolver resolver)
Substitutes the entry's value.
|
PropertyIndexSupplier |
substituteValues(PropertyResolver resolver)
Creates an index supplier which substitutes every value contained by the underlying map.
|
static CompositePropertyIndexSupplier.Builder |
using(BinaryOperator<String> mergeFunction)
Creates a new
CompositePropertyIndexSupplier.Builder using the given merge function to handle duplicate keys during merge. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, substituteValuepublic Map<String,String> get() throws IllegalStateException
CompositePropertyIndexSupplier.Builder.get in interface Supplier<Map<String,String>>IllegalStateException - in case builder() where used to instantiate the CompositePropertyIndexSupplier.Builder and the
delegates contain duplicate keys.builder(),
keeping(),
overriding()public PropertyIndexSupplier substituteValues(PropertyResolver resolver)
PropertyIndexSuppliersubstituteValues in interface PropertyIndexSupplierresolver - the component that resolves system propertypublic UnaryOperator<String> substitute(PropertyResolver resolver)
PropertyIndexSuppliersubstitute in interface PropertyIndexSupplierresolver - the component that resolves system propertypublic static CompositePropertyIndexSupplier.Builder builder()
CompositePropertyIndexSupplier.Builder throwing an exception lazily in case get() encounters duplicate keys while
merging the underlying delegates.CompositePropertyIndexSupplier.Builderkeeping(),
overriding()public static CompositePropertyIndexSupplier.Builder keeping()
CompositePropertyIndexSupplier.Builder keeping existing values of duplicate keys during merge.CompositePropertyIndexSupplier.Builderpublic static CompositePropertyIndexSupplier.Builder overriding()
CompositePropertyIndexSupplier.Builder overriding existing values of duplicate keys during merge.CompositePropertyIndexSupplier.Builderpublic static CompositePropertyIndexSupplier.Builder using(BinaryOperator<String> mergeFunction)
CompositePropertyIndexSupplier.Builder using the given merge function to handle duplicate keys during merge.CompositePropertyIndexSupplier.BuilderCopyright © 2023. All rights reserved.