com.mlw.vlh.impl
Class DefaultValueList

java.lang.Object
  |
  +--com.mlw.vlh.impl.DefaultValueList
All Implemented Interfaces:
java.util.Iterator, java.io.Serializable, ValueList

public class DefaultValueList
extends java.lang.Object
implements ValueList

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

Author:
Matthew Wilson
See Also:
Serialized Form

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

Constructor Detail

DefaultValueList

public DefaultValueList(java.util.List list,
                        ValueListInfo info)
Creates a new instance of DefaultValueList

Method Detail

getList

public java.util.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 java.lang.Object next()
                      throws java.util.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:
java.util.NoSuchElementException - If element does not exist.
See Also:
com.mlw.vlh.ValueList.next()

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


Copyright © 2003 mlavilson. All Rights Reserved.