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

com.github.geekonjava.Refination Maven / Gradle / Ivy

The newest version!
package com.github.geekonjava;

import java.util.Collection;

import com.github.geekonjava.matcher.Matcher;
import com.github.geekonjava.matcher.custom.Contains;
import com.github.geekonjava.matcher.custom.Equals;
import com.github.geekonjava.matcher.custom.EqualsIgnoreCase;
import com.github.geekonjava.matcher.custom.GreaterThan;
import com.github.geekonjava.matcher.custom.IsNull;
import com.github.geekonjava.matcher.custom.LessThan;
import com.github.geekonjava.matcher.custom.Not;
import com.github.geekonjava.query.Query;

public class Refination {

  public static  Query from(Collection collection) {
    return new Query(collection);
  }

  public static Matcher eq(Object value) {
    return new Equals(value);
  }

  public static Matcher contains(String value) {
    return new Contains(value);
  }

  public static Matcher eqIgnoreCase(String value) {
    return new EqualsIgnoreCase(value);
  }

  public static Matcher not(Matcher matcher) {
    return new Not(matcher);
  }

  public static Matcher greaterThan(Number value) {
    return new GreaterThan(value);
  }

  public static Matcher lessThan(Number value) {
    return new LessThan(value);
  }

  public static Matcher isNull() {
    return new IsNull();
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy