Class ValuesMapper

    • Constructor Detail

      • ValuesMapper

        public ValuesMapper​(int... indices)
        Constructs a new ValuesMapper that extracts value from a Tuple at specified indices.
        Parameters:
        indices - the indices
    • Method Detail

      • apply

        public Values apply​(Tuple input)
        Description copied from interface: Function
        Applies this function to the given argument.
        Specified by:
        apply in interface Function<Tuple,​Values>
        Parameters:
        input - the input to the function
        Returns:
        the function result