org.joo.libra.common.SimpleHasValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joo-libra Show documentation
Show all versions of joo-libra Show documentation
Java Predicate with SQL-like syntax support
package org.joo.libra.common;
import org.joo.libra.PredicateContext;
/**
* Simple implementation of {@link org.joo.libra.common.HasValue}
*
* @author griever
*
* @param
* the class type of the value
*/
public class SimpleHasValue implements HasValue {
private T value;
public SimpleHasValue(final T value) {
this.value = value;
}
@Override
public T getValue(final PredicateContext context) {
return value;
}
}