Ascent Phase Corp.

org.ascentphase.suit
Class ArrayItemList

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

public class ArrayItemList
extends java.lang.Object
implements ItemList

An ItemList that uses a String array as its underlying data source.

Version:
Author:
huyd

Constructor Summary
ArrayItemList(java.lang.String[] list)
          Initializes this class with the given Array of Strings.
 
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
 

Constructor Detail

ArrayItemList

public ArrayItemList(java.lang.String[] list)
Initializes this class with the given Array of Strings.

Parameters:
list - the array of Strings.
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.