au.com.zip.cs
Class HierList

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by au.com.zip.cs.HierList
All Implemented Interfaces:
Iterable, Collection, List

public class HierList
extends AbstractList

A List based on a ListHier.

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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
HierList(ListHier h)
          Constructs a new HierList interfaced to a ListHier.
 
Method Summary
 Object get(int ndx)
           
 Object remove(int ndx)
           
 Object set(int ndx, Object value)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

HierList

public HierList(ListHier h)
Constructs a new HierList interfaced to a ListHier.

Parameters:
h - the source ListHier
Method Detail

size

public final int size()
Specified by:
size in interface Collection
Specified by:
size in interface List
Specified by:
size in class AbstractCollection

get

public final Object get(int ndx)
Specified by:
get in interface List
Specified by:
get in class AbstractList

set

public final Object set(int ndx,
                        Object value)
Specified by:
set in interface List
Overrides:
set in class AbstractList

remove

public final Object remove(int ndx)
Specified by:
remove in interface List
Overrides:
remove in class AbstractList