net.mlw.vlh
Class DefaultListBackedValueList

java.lang.Object
  extended bynet.mlw.vlh.DefaultListBackedValueList
All Implemented Interfaces:
Iterator, Serializable, ValueList
Direct Known Subclasses:
ValueListNullSpacer

public class DefaultListBackedValueList
extends Object
implements ValueList

Wrapper for a List and a ValueListInfo object. This is the Default implementation of ValueList.

Version:
$Revision: 1.10 $ $Date: 2005/08/19 15:46:25 $
Author:
Matthew L. Wilson, Andrej Zachar
See Also:
Serialized Form

Constructor Summary
DefaultListBackedValueList()
          Creates a new instance of DefaultValueList
DefaultListBackedValueList(List list)
          Default constructor.
DefaultListBackedValueList(List list, ValueListInfo info)
          Default constructor.
 
Method Summary
 List getList()
          Returns the embeded List
 ValueListInfo getValueListInfo()
          Returns the embeded ValueListInfo
 boolean hasNext()
          Returns if there more Objects in the Iterator
 Object next()
          Gets the next Object in the Iterator.
 void remove()
           
 void reset()
          Resets the Iterator in this ValueList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultListBackedValueList

public DefaultListBackedValueList()
Creates a new instance of DefaultValueList


DefaultListBackedValueList

public DefaultListBackedValueList(List list)
Default constructor. Here is always the same the list.size and info.getTotalNumberOfEntries.

Parameters:
list - The List to be sorted.

DefaultListBackedValueList

public DefaultListBackedValueList(List list,
                                  ValueListInfo info)
Default constructor. Warning! list.size and info.getTotalNumberOfEntries could be different!

Parameters:
list - The List to be sorted.
info - The sorting/paging/filtering info.
Method Detail

getList

public List getList()
Description copied from interface: ValueList
Returns the embeded List

Specified by:
getList in interface ValueList
Returns:
The embeded List
See Also:
com.mlw.vlh.ValueList.getList()

getValueListInfo

public ValueListInfo getValueListInfo()
Description copied from interface: ValueList
Returns the embeded ValueListInfo

Specified by:
getValueListInfo in interface ValueList
Returns:
The embeded ValueListInfo
See Also:
com.mlw.vlh.ValueList.getListInfo()

hasNext

public boolean hasNext()
Description copied from interface: ValueList
Returns if there more Objects in the Iterator

Specified by:
hasNext in interface ValueList
Returns:
true if there more Objects in the Iterator, other wise false
See Also:
com.mlw.vlh.ValueList.hasNext()

next

public Object next()
            throws NoSuchElementException
Description copied from interface: ValueList
Gets the next Object in the Iterator.

Specified by:
next in interface ValueList
Returns:
The next Object in the Iterator.
Throws:
NoSuchElementException - If element does not exist.
See Also:
Iterator.next()

remove

public void remove()
Specified by:
remove in interface Iterator
See Also:
Iterator.remove()

reset

public void reset()
Resets the Iterator in this ValueList.



Copyright © 2003-2006 mlavilson. All Rights Reserved.