Interface PropertyIndexSupplier

All Superinterfaces:
Supplier<Map<String,String>>
All Known Implementing Classes:
CompositePropertyIndexSupplier, ConfigDataPropertyIndexSupplier, EnvironmentPropertyIndexSupplier, FilenamePropertyIndexSupplier
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PropertyIndexSupplier extends Supplier<Map<String,String>>
An interface for specifying Supplier's type.
Author:
Vincent Nadoll
  • Method Details

    • substituteValues

      default PropertyIndexSupplier substituteValues(PropertyResolver resolver)
      Creates an index supplier which substitutes every value contained by the underlying map.
      Parameters:
      resolver - the component that resolves system property
      Returns:
      new instance of a substituting index supplier
    • substituteValue

      default Function<Map.Entry<?,String>,String> substituteValue(PropertyResolver resolver)
      Substitutes the entry's value.
      Parameters:
      resolver - the component that resolves system property
      Returns:
      a function which substitutes the entry's value
    • substitute

      default UnaryOperator<String> substitute(PropertyResolver resolver)
      Substitutes the entry's value.
      Parameters:
      resolver - the component that resolves system property
      Returns:
      a function which substitutes its argument
    • from

      static PropertyIndexSupplier from(Map<String,String> properties)
      Creates a instance of this PropertyIndexSupplier by supplying just the given map.
      Parameters:
      properties - must not be null
      Returns:
      new instance of PropertyIndexSupplier