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

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

package com.github.dakusui.crest.matcherbuilders;

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

import java.util.function.Function;

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

  @SuppressWarnings("unchecked")
  public  S gt(OF_TYPE value) {
    return (S) this.check(CrestPredicates.gt(value));
  }

  @SuppressWarnings("unchecked")
  public  S ge(OF_TYPE value) {
    return (S) this.check(CrestPredicates.ge(value));
  }

  @SuppressWarnings("unchecked")
  public  S lt(OF_TYPE value) {
    return (S) this.check(CrestPredicates.lt(value));
  }

  @SuppressWarnings("unchecked")
  public  S le(OF_TYPE value) {
    return (S) this.check(CrestPredicates.le(value));
  }

  @SuppressWarnings("unchecked")
  public  S eq(OF_TYPE value) {
    return (S) this.check(CrestPredicates.eq(value));
  }
}