Package io.perfmark

Interface StringFunction<T>

  • Type Parameters:
    T - The type to turn into a String.
    All Superinterfaces:
    java.util.function.Function<T,​java.lang.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 java.util.function.Function<T,​java.lang.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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String apply​(T t)
      Takes the given argument and produces a String.
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Method Detail

      • apply

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