All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.pincette.rs.PassThrough Maven / Gradle / Ivy

package net.pincette.rs;

import java.util.concurrent.Flow.Processor;

/**
 * A processor which just passes through all values.
 *
 * @param  the object type of the values.
 * @author Werner Donn\u00e9
 * @since 1.0
 */
public class PassThrough extends Mapper {
  public PassThrough() {
    super(v -> v);
  }

  /**
   * Returns a PassThrough processor.
   *
   * @param  the value type.
   * @return The processor.
   * @since 3.0
   */
  public static  Processor passThrough() {
    return new PassThrough<>();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy