com.softicar.platform.common.container.data.table.DataTableValueFilterOperator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.container.data.table;
import com.softicar.platform.common.container.CommonContainerI18n;
/**
* List all value filer operators.
*
* @author Oliver Richers
*/
public enum DataTableValueFilterOperator {
EQUAL("="),
NOT_EQUAL("!="),
GREATER(">"),
GREATER_EQUAL(">="),
LESS("<"),
LESS_EQUAL("<="),
EMPTY(CommonContainerI18n.EMPTY.toString()),
NOT_EMPTY(CommonContainerI18n.NOT_EMPTY.toString());
private final String operatorSymbol;
private DataTableValueFilterOperator(String operatorSymbol) {
this.operatorSymbol = operatorSymbol;
}
public String getOperatorSymbol() {
return operatorSymbol;
}
public boolean isEmpty() {
return equals(EMPTY);
}
public boolean isNotEmpty() {
return equals(NOT_EMPTY);
}
}