Interface Formatter<V>

All Superinterfaces:
Function<V,String>
All Known Subinterfaces:
CustomFormatter
All Known Implementing Classes:
CollectionFormatter, DateFormatter, NumberFormatter
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 Formatter<V> extends Function<V,String>
A functional interface for formatting component value to a string.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(V value)
    Formats a value to a string.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      String apply(@Nullable V value)
      Formats a value to a string.
      Specified by:
      apply in interface Function<V,String>
      Parameters:
      value - a value
      Returns:
      formatted string