sbrt.kernel.utilities
Class And<C>
java.lang.Object
sbrt.kernel.utilities.LogicalRelation<C>
sbrt.kernel.utilities.And<C>
- Type Parameters:
C
- the condition type.
- All Implemented Interfaces:
- java.lang.Iterable<C>
public final class And<C>
- extends LogicalRelation<C>
This class is used to represent the logical relationship "and".
- Author:
- This class was written and documented by Jeremiah Wright while in the
Wagner lab.
Constructor Summary |
And(java.util.Collection<C> conditions)
Constructs a new "and" relationship. |
Method Summary |
boolean |
equals(java.lang.Object obj)
Indicates if this "and" is equal to the provided object. |
java.lang.String |
toString()
Returns a string representation of this "and" relationship. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
And
public And(java.util.Collection<C> conditions)
- Constructs a new "and" relationship.
- Parameters:
conditions
- the conditions.
equals
public boolean equals(java.lang.Object obj)
- Indicates if this "and" 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 And
and its conditions of both "ands" 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.