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

com.cedarsoft.utils.Condition Maven / Gradle / Ivy

The newest version!
package com.cedarsoft.utils;

import org.jetbrains.annotations.NotNull;

/**
 * A condition.
 */
public interface Condition {
  /**
   * Static condition that is always false.
   */
  @NotNull
  Condition FALSE = new Condition() {
    public boolean isValid() {
      return false;
    }
  };
  /**
   * Static condition that is always true.
   */
  @NotNull
  Condition TRUE = new Condition() {
    public boolean isValid() {
      return true;
    }
  };

  boolean isValid();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy