cst.loggingTool.persistenceLayer
Enum ComparisonOperator
java.lang.Object
java.lang.Enum<ComparisonOperator>
cst.loggingTool.persistenceLayer.ComparisonOperator
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ComparisonOperator>
public enum ComparisonOperator
- extends java.lang.Enum<ComparisonOperator>
An enumeration to represent comparison operations between dates that are used by
filtering options in the logging tool.
Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
VALUE_PRESENT
public static final ComparisonOperator VALUE_PRESENT
VALUE_NOT_PRESENT
public static final ComparisonOperator VALUE_NOT_PRESENT
EQUALS
public static final ComparisonOperator EQUALS
GREATER_THAN
public static final ComparisonOperator GREATER_THAN
GREATER_THAN_OR_EQUAL
public static final ComparisonOperator GREATER_THAN_OR_EQUAL
LESS_THAN
public static final ComparisonOperator LESS_THAN
LESS_THAN_OR_EQUAL
public static final ComparisonOperator LESS_THAN_OR_EQUAL
BETWEEN
public static final ComparisonOperator BETWEEN
values
public static ComparisonOperator[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ComparisonOperator c : ComparisonOperator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ComparisonOperator valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getDisplayName
public java.lang.String getDisplayName()
setDisplayName
public void setDisplayName(java.lang.String displayName)
equalsDisplayName
public boolean equalsDisplayName(java.lang.String operatorDisplayName)