net.sf.jga.fn.logical

Class LogicalOr

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

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

Copyright © 2002 David A. Hall

Author: David A. Hall

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

Method Detail

accept

public void accept(Visitor v)
Calls the Visitor's visit(LogicalOr) 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 either x and y are true, otherwise false.

Returns: x || y

toString

public String toString()