sbrt.kernel.utilities
Class Or<C>

java.lang.Object
  extended by sbrt.kernel.utilities.LogicalRelation<C>
      extended by sbrt.kernel.utilities.Or<C>
Type Parameters:
C - the condition type.
All Implemented Interfaces:
java.lang.Iterable<C>

public final class Or<C>
extends LogicalRelation<C>

This class is used to represent the logical relationship "or".

Author:
This class was written and documented by Jeremiah Wright while in the Wagner lab.

Constructor Summary
Or(java.util.Collection<C> conditions)
          Constructs a new "or" relationship.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates if this "or" is equal to the provided object.
 java.lang.String toString()
          Returns a string representation of this "and" relationship.
 
Methods inherited from class sbrt.kernel.utilities.LogicalRelation
contains, elements, getConditions, hashCode, iterator
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Or

public Or(java.util.Collection<C> conditions)
Constructs a new "or" relationship.

Parameters:
conditions - the conditions.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Indicates if this "or" is equal to the provided object.

Specified by:
equals in class LogicalRelation<C>
Parameters:
obj - the object for which comparison is made.
Returns:
true if the provided object is of type Or and its conditions of both "ors" are equal; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of this "and" relationship.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this "and" relationship.