Ascent Phase Corp.

org.ascentphase.suit
Class VectorItemList

java.lang.Object
  |
  +--org.ascentphase.suit.VectorItemList
All Implemented Interfaces:
ItemList

public class VectorItemList
extends java.lang.Object
implements ItemList

An ItemList that uses a Vector as its underlying data source.

Version:
Author:
huyd

Field Summary
protected  java.util.Vector list
           
 
Constructor Summary
VectorItemList(java.util.Vector list)
          Initializes this class with the given Vector of String objects.
 
Method Summary
 int getSize()
          Returns the current size of the list.
 java.lang.String getStringAt(int index)
          Returns the String item at the given index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected java.util.Vector list
Constructor Detail

VectorItemList

public VectorItemList(java.util.Vector list)
Initializes this class with the given Vector of String objects.

Parameters:
list - a Vector of String objects.
Method Detail

getSize

public int getSize()
Returns the current size of the list.

Specified by:
getSize in interface ItemList
Returns:
the size of the item list.

getStringAt

public java.lang.String getStringAt(int index)
Returns the String item at the given index. The index is a zero-based index.

Specified by:
getStringAt in interface ItemList
Parameters:
index - the index value.

Ascent Phase Corp.

Copyright © 2002 Ascent Phase Corp. All Rights Reserved.