net.sf.cpsolver.ifs.util
Class FastVector
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.Vector
net.sf.cpsolver.ifs.util.FastVector
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, List, RandomAccess, EnumerableCollection
public class FastVector
- extends Vector
- implements EnumerableCollection
Vector extension with faster enumeration.
In elements()
, no unnecessary check is made.
- Version:
- IFS 1.1 (Iterative Forward Search)
Copyright (C) 2006 Tomáš Müller
muller@unitime.org
Lazenska 391, 76314 Zlin, Czech Republic
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- See Also:
- Serialized Form
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
FastVector
public FastVector()
FastVector
public FastVector(int initialCapacity)
FastVector
public FastVector(int initialCapacity,
int capacityIncrement)
FastVector
public FastVector(Collection c)
elements
public Enumeration elements()
- Description copied from interface:
EnumerableCollection
- Enumerate content
- Specified by:
elements
in interface EnumerableCollection
- Overrides:
elements
in class Vector
toString
public String toString()
- Overrides:
toString
in class Vector