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

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

There is a newer version: 3.7.1
Show newest version
package net.pincette.rs;

import java.util.concurrent.Flow.Processor;

/**
 * Emits only the first value it receives.
 *
 * @param  the value type.
 * @author Werner Donn\u00e9
 * @since 1.4
 */
public class First extends Until {
  public First() {
    super(v -> true);
  }

  public static  Processor first() {
    return new First<>();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy