Package io.perfmark

Interface StringFunction<T>

  • Type Parameters:
    T - The type to turn into a String.

    public interface StringFunction<T>
    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 Detail

      • apply

        java.lang.String apply​(T t)
        Takes the given argument and produces a String.
        Parameters:
        t - the subject to Stringify
        Returns:
        the String
        Since:
        0.22.0