Class Conversions


  • public final class Conversions
    extends Object
    • Method Detail

      • mutableIndexOf

        public static int mutableIndexOf​(Type t)
        Finds the Mutable or Container argument of a FunctionalInterface's singular abstract method. If there is no argument annotated with Mutable or Container, then it is assumed that no arguments are mutable and that the output of the functional Method is its output. We also assume that only one argument is annotated.
        Parameters:
        t - - the Type extending a FunctionalInterface
        Returns:
        the index of the mutable argument (or -1 iff the output is returned).