|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
choco.kernel.memory.structure.StoredBipartiteSet<E>
choco.kernel.memory.structure.StoredBipartiteVarSet<E>
public final class StoredBipartiteVarSet<E extends Var>
Field Summary |
---|
Fields inherited from class choco.kernel.memory.structure.StoredBipartiteSet |
---|
elementData, last |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
StoredBipartiteVarSet(IEnvironment env)
|
Method Summary | |
---|---|
boolean |
add(E e)
Add a variable to the structure. |
void |
clear()
Clear datastructures for safe reuses |
boolean |
contains(E o)
Returns true if this list contains the specified element. |
void |
ensureCapacity(int expectedSize)
Ensure the capasities of array |
DisposableIterator<E> |
getInstanciatedVariableIterator()
Iterator over instanciated variables BEWARE: initial order is not preserved |
DisposableIterator<E> |
getNotInstanciatedVariableIterator()
Iterator over non instanciated variables BEWARE: initial order is not preserved |
int |
indexOf(E o)
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
String |
pretty()
pretty printing of the object. |
E |
remove(int index)
removal performs a swap on a pair of elements. |
int |
size()
|
E |
swap(int index)
removal performs a swap on a pair of elements. |
E[] |
toArray()
|
List<E> |
toList()
|
String |
toString()
|
Methods inherited from class choco.kernel.memory.structure.StoredBipartiteSet |
---|
get, getQuick, quickIterator, sort |
Methods inherited from class java.util.AbstractList |
---|
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray |
Constructor Detail |
---|
public StoredBipartiteVarSet(IEnvironment env)
Method Detail |
---|
public void clear()
clear
in interface Collection<E extends Var>
clear
in interface List<E extends Var>
clear
in class AbstractList<E extends Var>
public boolean add(E e)
add
in interface Collection<E extends Var>
add
in interface List<E extends Var>
add
in class AbstractList<E extends Var>
e
- the new variable
public void ensureCapacity(int expectedSize)
expectedSize
- expected sizepublic E swap(int index)
index
- index of the object to remove
public List<E> toList()
public E[] toArray()
toArray
in interface Collection<E extends Var>
toArray
in interface List<E extends Var>
toArray
in class AbstractCollection<E extends Var>
public boolean contains(E o)
o
- element whose presence in this list is to be tested
public int indexOf(E o)
o
- search object
public int size()
size
in interface Collection<E extends Var>
size
in interface List<E extends Var>
size
in class StoredBipartiteSet<E extends Var>
public String pretty()
IPretty
pretty
in interface IPretty
public String toString()
toString
in class AbstractCollection<E extends Var>
public E remove(int index)
remove
in interface List<E extends Var>
remove
in class StoredBipartiteSet<E extends Var>
AbstractList.remove(int)
public final DisposableIterator<E> getNotInstanciatedVariableIterator()
public final DisposableIterator<E> getInstanciatedVariableIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |