au.com.zip.cs
Interface ListHier

All Superinterfaces:
Hier
All Known Implementing Classes:
SimpleListHier

public interface ListHier
extends Hier

A Hier storing entries in an ordered list.

Author:
Cameron Simpson <cs@zip.com.au> 6may2003
See Also:
HierList

Field Summary
 
Fields inherited from interface au.com.zip.cs.Hier
ARRAY, HASH, SCALAR
 
Method Summary
 void addEntry(int ndx, Hier h)
          Add a new Hier to the list at the specified position.
 Hier getEntry(int ndx)
          Return the Hier stored at the specified index.
 int getSize()
          Return the number of elements in this list.
 Hier removeEntry(int ndx)
          Remove the element at the spcified position.
 List toList()
          Return a List view of this list.
 
Methods inherited from interface au.com.zip.cs.Hier
getType, toString
 

Method Detail

getSize

int getSize()
Return the number of elements in this list.

Returns:
the number of elements

getEntry

Hier getEntry(int ndx)
Return the Hier stored at the specified index.

Parameters:
ndx - the index
Returns:
the subelement

addEntry

void addEntry(int ndx,
              Hier h)
Add a new Hier to the list at the specified position.

Parameters:
ndx - the position
h - the Hier to add

removeEntry

Hier removeEntry(int ndx)
Remove the element at the spcified position.

Parameters:
ndx - the position
Returns:
the old entry

toList

List toList()
Return a List view of this list.

Returns:
the List
See Also:
HierList