/** * Do nothing. Use this if you have all logic in filters and/or specifications * * @param <T> The item type. * * @return An Output instance that ignores all data. */ public static <T> Output<T, RuntimeException> noop() // END SNIPPET: method { return withReceiver( new Receiver<T, RuntimeException>() { @Override public void receive( T item ) throws RuntimeException { // Do nothing } } ); }