org.nuiton.wikitty.search.operators
Class Greater

java.lang.Object
  extended by org.nuiton.wikitty.search.operators.Restriction
      extended by org.nuiton.wikitty.search.operators.BinaryOperator
          extended by org.nuiton.wikitty.search.operators.Greater
All Implemented Interfaces:
Serializable

public class Greater
extends BinaryOperator
implements Serializable

Greater operator is used to build restriction containing "element > value" where element could be a Integer, a Float or a Date.

For example, use: RestrictionHelper.less( myElement , RestrictionHelper.DATE_FORMAT.format(new Date()) )

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.nuiton.wikitty.search.operators.BinaryOperator
element, value
 
Fields inherited from class org.nuiton.wikitty.search.operators.Restriction
name
 
Constructor Summary
Greater()
          Default constructor
 
Method Summary
 boolean equals(Object other)
          Equality test based attributes values
 int hashCode()
           
 
Methods inherited from class org.nuiton.wikitty.search.operators.BinaryOperator
getElement, getValue, setElement, setValue
 
Methods inherited from class org.nuiton.wikitty.search.operators.Restriction
getName, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Greater

public Greater()
Default constructor

Method Detail

equals

public boolean equals(Object other)
Equality test based attributes values

Overrides:
equals in class BinaryOperator
Parameters:
value - Value to compare

hashCode

public int hashCode()
Overrides:
hashCode in class BinaryOperator


Copyright © 2009-2011 CodeLutin. All Rights Reserved.