|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.kernel.utilities.LogicalRelation<C>
C
- the condition type.public abstract class LogicalRelation<C>
This class is used to represent logical relationships or operations. Logical relationships have a set of conditions which usually evaluate to either "true" or "false".
Constructor Summary | |
---|---|
LogicalRelation(java.util.Collection<C> conditions)
Constructs a new logical relationship from the provided conditions. |
Method Summary | |
---|---|
boolean |
contains(java.lang.Object condition)
Indicates if this logical relationship contains the provided condition. |
int |
elements()
Returns the number of conditions of this logical relationship. |
abstract boolean |
equals(java.lang.Object obj)
Inidicates if this logical relationship is "equal to" the provided object. |
UnmodifiableSet<C> |
getConditions()
Returns the set of conditions of this logical relationship. |
int |
hashCode()
Returns a content-based hash code. |
java.util.Iterator<C> |
iterator()
Returns an iterator over the conditions of this logical relationship. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogicalRelation(java.util.Collection<C> conditions)
conditions
- the set of conditions.Method Detail |
---|
public UnmodifiableSet<C> getConditions()
public int elements()
public java.util.Iterator<C> iterator()
iterator
in interface java.lang.Iterable<C>
public boolean contains(java.lang.Object condition)
condition
- the condition for which occurence is checked.
true
if the provide condition is contained in this
logical relationship; false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public abstract boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object for which comparison is made.
true
if this logical relationship equals the provided
object; false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |