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

com.github.dakusui.crest.matcherbuilders.AsStream Maven / Gradle / Ivy

package com.github.dakusui.crest.matcherbuilders;

import com.github.dakusui.crest.functions.CrestPredicates;

import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Stream;

public class AsStream extends AsObject, AsStream> {
  public AsStream(Function> function) {
    super(function);
  }

  public AsStream allMatch(Predicate predicate) {
    return this.check(CrestPredicates.allMatch(predicate));
  }

  public AsStream noneMatch(Predicate predicate) {
    return this.check(CrestPredicates.noneMatch(predicate));
  }

  public AsStream anyMatch(Predicate predicate) {
    return this.check(CrestPredicates.anyMatch(predicate));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy