public class ConstraintBase extends ConstraintList
ConstraintList.IModificationListener, ConstraintList.Node| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<net.ssehub.easy.varModel.model.Constraint,ConstraintList.Node> |
mapping |
modCount| Constructor and Description |
|---|
ConstraintBase()
Constructs an empty constraint base.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(net.ssehub.easy.varModel.model.Constraint constraint)
Returns
true if this list contains the specified constraint. |
boolean |
removeAll(java.util.Collection<? extends net.ssehub.easy.varModel.model.Constraint> constraints)
Removes all elements from this list, which are also in
constraints. |
add, addAll, addAll, addAll, addAll, addAll, addAll, addFirst, addLast, clear, getFirst, getLast, indexOf, isEmpty, iterator, pop, removeFirst, removeLast, setModificationListener, size, toArray, toCollection, toString, unlinkprivate java.util.Map<net.ssehub.easy.varModel.model.Constraint,ConstraintList.Node> mapping
public boolean contains(net.ssehub.easy.varModel.model.Constraint constraint)
ConstraintListtrue if this list contains the specified constraint.
More formally, returns true if and only if this list contains
at least one constraint constraint such that
o == constraint.contains in class ConstraintListconstraint - the constraint whose presence in this list is to be testedtrue if this list contains the specified elementpublic boolean removeAll(java.util.Collection<? extends net.ssehub.easy.varModel.model.Constraint> constraints)
ConstraintListconstraints.removeAll in class ConstraintListconstraints - the elements to removeCopyright © 2009 - 2018 SSE. All Rights Reserved.