net.sf.jga.fn.comparison
Class EqualEqual<T>
java.lang.Object
net.sf.jga.fn.Functor<R>
net.sf.jga.fn.BinaryFunctor<T,T,java.lang.Boolean>
net.sf.jga.fn.comparison.Equality<T>
net.sf.jga.fn.comparison.EqualEqual<T>
- All Implemented Interfaces:
- java.io.Serializable, Visitable
public class EqualEqual<T>
- extends Equality<T>
Binary Predicate that returns TRUE for object arguments x and
y when x == y using the built-in == operator.
Copyright © 2002-2005 David A. Hall
- Author:
- David A. Hall
- See Also:
- Serialized Form
Nested Class Summary |
static interface |
EqualEqual.Visitor
Interface for classes that may interpret an EqualEqual predicate. |
Method Summary |
void |
accept(Visitor v)
Calls the Visitor's visit(EqualEqual) method, if it
implements the nested Visitor interface. |
java.lang.Boolean |
fn(T x,
T y)
Given arguments x and y, returns x == y. |
java.lang.String |
toString()
|
Methods inherited from class net.sf.jga.fn.BinaryFunctor |
bind, bind0th, bind1st, bind2nd, bindNth, compose, compose, composeNth, distribute, eval, generate, generate1st, generate2nd, generateNth |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EqualEqual
public EqualEqual()
fn
public java.lang.Boolean fn(T x,
T y)
- Given arguments x and y, returns x == y.
- Specified by:
fn
in class BinaryFunctor<T,T,java.lang.Boolean>
- Returns:
- x == y
accept
public void accept(Visitor v)
- Calls the Visitor's
visit(EqualEqual)
method, if it
implements the nested Visitor interface.
- Specified by:
accept
in interface Visitable
- Overrides:
accept
in class Functor<java.lang.Boolean>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2006 David A. Hall. All Rights Reserved.