org.sharengo.wikitty.search
Class NotEquals

java.lang.Object
  extended by org.sharengo.wikitty.search.Restriction
      extended by org.sharengo.wikitty.search.BinaryOperator
          extended by org.sharengo.wikitty.search.NotEquals
All Implemented Interfaces:
Serializable

public class NotEquals
extends BinaryOperator
implements Serializable

NotEquals operator is used to build restriction containing "element != value" where element could be an Id, a String, a multimedia, a closed list, an Integer, a Float or a Date.

For example, use: RestrictionHelper.neq( myElement , "REF1234567890" )

See Also:
Serialized Form

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

Constructor Detail

NotEquals

public NotEquals()
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-2010 CodeLutin. All Rights Reserved.