public final class IntegerFormula<V>
extends java.lang.Object
IntegerFormula
represents a formula, which is a set of IntegerClause
.Modifier and Type | Class and Description |
---|---|
static class |
IntegerFormula.Builder<V>
IntegerFormula.Builder is a IntegerFormula builder. |
Constructor and Description |
---|
IntegerFormula(java.util.Collection<IntegerClause<V>> clauses)
Constructs a formula.
|
IntegerFormula(IntegerFormula<V> rhs)
Constructs a copy of the formula.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Collection<IntegerClause<V>> |
getClauses()
Returns the equation clauses of the formula.
|
java.util.Collection<V> |
getVariables()
Returns the variables used in the clause.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether there are no clauses.
|
int |
size()
Returns the number of clauses in the formula.
|
java.lang.String |
toString() |
public IntegerFormula(java.util.Collection<IntegerClause<V>> clauses)
clauses
- the formula clauses.java.lang.IllegalArgumentException
- if clauses
is null.public IntegerFormula(IntegerFormula<V> rhs)
rhs
- the formula to be copied.java.lang.IllegalArgumentException
- if rhs
is null.public boolean isEmpty()
true
if there are no clauses; false
otherwise.public int size()
public java.util.Collection<IntegerClause<V>> getClauses()
public java.util.Collection<V> getVariables()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object