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

com.github.dakusui.crest.matcherbuilders.primitives.AsBoolean Maven / Gradle / Ivy

package com.github.dakusui.crest.matcherbuilders.primitives;

import com.github.dakusui.crest.matcherbuilders.ObjectMatcherBuilder;
import com.github.dakusui.crest.utils.printable.Predicates;

import java.util.function.Function;

public class AsBoolean extends ObjectMatcherBuilder> {
  public AsBoolean(Function function) {
    super(function);
  }

  public AsBoolean isTrue() {
    this.check(Predicates.isTrue());
    return this;
  }

  public AsBoolean isFalse() {
    this.check(Predicates.isFalse());
    return this;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy