Interface NameFormatter

All Superinterfaces:
Function<String,String>
All Known Implementing Classes:
NameFormatters
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 NameFormatter extends Function<String,String>
Implementations of this interface format the names of configuration elements.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    apply(String name)
    Formats the name of a configuration element.
    format(String name)
    Formats the name of a configuration element.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • format

      String format(String name)
      Formats the name of a configuration element.
      Parameters:
      name - the name that is formatted
      Returns:
      formatted name
      Throws:
      NullPointerException - if name is null
    • apply

      default String apply(String name)
      Formats the name of a configuration element.
      Specified by:
      apply in interface Function<String,String>
      Parameters:
      name - the name that is formatted
      Returns:
      formatted name
      Throws:
      NullPointerException - if name is null