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

com.github.dakusui.thincrest.metamor.PropositionPredicate Maven / Gradle / Ivy

The newest version!
package com.github.dakusui.thincrest.metamor;

import com.github.dakusui.thincrest_pcond.core.Evaluable;
import com.github.dakusui.thincrest_pcond.core.printable.PrintablePredicate;

import java.util.function.Predicate;

import static java.util.Collections.emptyList;

public class PropositionPredicate extends PrintablePredicate implements Evaluable.LeafPred {
  public static final PropositionPredicate INSTANCE = new PropositionPredicate();
  
  protected PropositionPredicate() {
    super(new Object(), emptyList(), () -> "evaluate", Proposition::evaluate);
  }
  
  @Override
  public Predicate predicate() {
    return super.predicate;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy