Interface ItemProcessor<I,​O>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      Oprocess​(I item)
      Process the provided item, returning a potentially modified or new item for continued processing.
    • Method Detail

      • process

        @Nullable
        O process​(I item)
           throws java.lang.Exception
        Process the provided item, returning a potentially modified or new item for continued processing. If the returned result is null, it is assumed that processing of the item should not continue.
        Parameters:
        item - to be processed
        Returns:
        potentially modified or new item for continued processing, null if processing of the provided item should not continue.
        Throws:
        java.lang.Exception - thrown if exception occurs during processing.