| net.sf.jga.fn.comparison.NotEqualTo
NotEqualTo | public class NotEqualTo extends BinaryPredicate (Code) | | Binary Predicate that returns TRUE for object arguments x and
y when x != y using the built-in equals() method or an optional
Comparator given at construction. By default, this object will not throw
NullPointerException: it will return true if either runtime arguments is null
but false if both are null. If an optional comparator is used, then its
implementation will determine if a NullPointerException is thrown when passed
a null argument.
To serialize an NotEqual functor, the comparator passed at construction(if
any) must be Serializable.
Copyright © 2002-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | NotEqualTo() Builds an EqualTo that uses the built-in equals method. | public | NotEqualTo(Comparator<? super T> comp) Builds an EqualTo that uses the given comparator. |
serialVersionUID | final static long serialVersionUID(Code) | | |
NotEqualTo | public NotEqualTo()(Code) | | Builds an EqualTo that uses the built-in equals method.
|
NotEqualTo | public NotEqualTo(Comparator<? super T> comp)(Code) | | Builds an EqualTo that uses the given comparator.
|
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(NotEqualTo) method, if it
implements the nested Visitor interface.
|
fn | public Boolean fn(T x, T y)(Code) | | Given arguments x and y, returns !(x.equals(y)). Will not
throw NullPointerException if either x or y are null: will return true
if either x or y (but not both) are null, will return false if both x
and y are null.
!(x.equals(y)) |
getComparator | public Comparator<? super T> getComparator()(Code) | | Returns the comparator in use by this functor, if any.
the comparator in use by this functor, if any. |
|
|