Interface CollectionUtils.Mapper<I,O>

Type Parameters:
I - the input type to the mapper.
O - the output type from the mapper.
Enclosing class:
CollectionUtils

public static interface CollectionUtils.Mapper<I,O>
Defines a functor interface implemented by classes that map one object into another.

A Mapper converts the input object to the output object. The input object should be left unchanged.

  • Method Summary

    Modifier and Type
    Method
    Description
    map(I input)
    Maps the input object (leaving it unchanged) into some output object.
  • Method Details

    • map

      O map(I input)
      Maps the input object (leaving it unchanged) into some output object.
      Parameters:
      input - the object to be mapped, should be left unchanged.
      Returns:
      a mapped object.