net.sf.cpsolver.ifs.util
Class FastVector

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.Vector
              extended by 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

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FastVector()
           
FastVector(Collection c)
           
FastVector(int initialCapacity)
           
FastVector(int initialCapacity, int capacityIncrement)
           
 
Method Summary
 Enumeration elements()
          Enumerate content
 String toString()
           
 
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 class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.cpsolver.ifs.util.EnumerableCollection
addElement, firstElement, removeElement
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

FastVector

public FastVector()

FastVector

public FastVector(int initialCapacity)

FastVector

public FastVector(int initialCapacity,
                  int capacityIncrement)

FastVector

public FastVector(Collection c)
Method Detail

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