choco.kernel.memory.structure
Class StoredBipartiteSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
choco.kernel.memory.structure.StoredBipartiteSet<E>
- Type Parameters:
E
-
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, List<E>
- Direct Known Subclasses:
- StoredBipartiteVarSet
public class StoredBipartiteSet<E>
- extends AbstractList<E>
- Since:
- 10 févr. 2009 version 2.0.3
- Version:
- 2.0.3
- Author:
- Arnaud Malapert
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList |
elementData
protected E[] elementData
- The list of values
last
protected IStateInt last
- The index of last element of the list
StoredBipartiteSet
public StoredBipartiteSet(IEnvironment env,
Collection<E> coll)
StoredBipartiteSet
public StoredBipartiteSet(IEnvironment env,
E[] elementData)
get
public E get(int index)
- Specified by:
get
in interface List<E>
- Specified by:
get
in class AbstractList<E>
getQuick
public E getQuick(int index)
quickIterator
public DisposableIterator<E> quickIterator()
size
public int size()
- Specified by:
size
in interface Collection<E>
- Specified by:
size
in interface List<E>
- Specified by:
size
in class AbstractCollection<E>
remove
public E remove(int index)
- removal performs a swap on a pair of elements. Do not remove while iterating if you want to preserve the current order.
- Specified by:
remove
in interface List<E>
- Overrides:
remove
in class AbstractList<E>
- See Also:
AbstractList.remove(int)
sort
public void sort(Comparator<E> cmp)
Copyright © 2012. All Rights Reserved.