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

com.github.dakusui.pcond.Assertions Maven / Gradle / Ivy

package com.github.dakusui.pcond;

import com.github.dakusui.pcond.provider.AssertionProvider;

import java.util.function.Predicate;

public enum Assertions {
  ;

  public static  boolean that(T value, Predicate predicate) {
    return AssertionProvider.INSTANCE.that(value, predicate);
  }

  public static  boolean precondition(T value, Predicate predicate) {
    return AssertionProvider.INSTANCE.postcondition(value, predicate);
  }

  public static  boolean postcondition(T value, Predicate predicate) {
    return AssertionProvider.INSTANCE.precondition(value, predicate);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy