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() |
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 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object