Package io.perfmark

Interface StringFunction<T>

Type Parameters:
T - The type to turn into a String.
All Superinterfaces:
Function<T,String>
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 StringFunction<T> extends Function<T,String>
This interface is equivalent to java.util.function.Function. It is here as a compatibility shim to make PerfMark compatible with Java 6. This will likely be removed if PerfMark picks Java 8 as the minimum support version. See PerfMark for expected usage.
Since:
0.22.0
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t)
    Takes the given argument and produces a String.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      String apply(T t)
      Takes the given argument and produces a String.
      Specified by:
      apply in interface Function<T,String>
      Parameters:
      t - the subject to Stringify
      Returns:
      the String
      Since:
      0.22.0