org.fuin.utils4j.filter
Class ComparableFilter.Operator

java.lang.Object
  extended by org.fuin.utils4j.filter.ComparableFilter.Operator
Enclosing class:
ComparableFilter

public static final class ComparableFilter.Operator
extends java.lang.Object

Operators for compare operations.


Field Summary
static ComparableFilter.Operator EQ
          Equal.
static ComparableFilter.Operator GT
          Greater than.
static ComparableFilter.Operator GTE
          Greater than or equal.
static ComparableFilter.Operator[] INSTANCES
          List of all known instances.
static ComparableFilter.Operator LT
          Less than.
static ComparableFilter.Operator LTE
          Less than or equal.
 
Method Summary
 java.lang.String getId()
          Returns the unique name of the operator.
static ComparableFilter.Operator getInstance(java.lang.String id)
          Returns an instance for a given id.
 java.lang.String getSign()
          Returns the symbol for the operator.
static boolean isValid(java.lang.String id)
          Determines if a given id is valid.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LT

public static final ComparableFilter.Operator LT
Less than.


LTE

public static final ComparableFilter.Operator LTE
Less than or equal.


EQ

public static final ComparableFilter.Operator EQ
Equal.


GT

public static final ComparableFilter.Operator GT
Greater than.


GTE

public static final ComparableFilter.Operator GTE
Greater than or equal.


INSTANCES

public static final ComparableFilter.Operator[] INSTANCES
List of all known instances.

Method Detail

getId

public final java.lang.String getId()
Returns the unique name of the operator.

Returns:
ID.

getSign

public final java.lang.String getSign()
Returns the symbol for the operator.

Returns:
Sign.

isValid

public static boolean isValid(java.lang.String id)
Determines if a given id is valid.

Parameters:
id - Name to check - Cannot be null.
Returns:
If the name is valid true else false.

getInstance

public static ComparableFilter.Operator getInstance(java.lang.String id)
Returns an instance for a given id.

Parameters:
id - Name to return an instance for - Cannot be null and must be a valid name.
Returns:
Instance.

toString

public final java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.