net.sf.jga.fn.logical

Class LogicalAnd

public class LogicalAnd extends AbstractBinaryPredicate<Boolean,Boolean> implements Serializable

Binary Predicate that returns true when Boolean arguments x and y are both true.

Copyright © 2002 David A. Hall

Author: David A. Hall

Nested Class Summary
interfaceLogicalAnd.Visitor
Interface for classes that may interpret a LogicalAnd predicate.
Method Summary
voidaccept(Visitor v)
Calls the Visitor's visit(LogicalAnd) method, if it implements the nested Visitor interface.
booleanp(Boolean x, Boolean y)
Given Boolean arguments x and y, returns true when both x and y are true, otherwise false.
StringtoString()

Method Detail

accept

public void accept(Visitor v)
Calls the Visitor's visit(LogicalAnd) method, if it implements the nested Visitor interface.

p

public boolean p(Boolean x, Boolean y)
Given Boolean arguments x and y, returns true when both x and y are true, otherwise false.

Returns: x && y

toString

public String toString()