org.apache.commons.collections.primitives.adapters
Class ListShortList

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.AbstractCollectionShortCollection
      extended by org.apache.commons.collections.primitives.adapters.AbstractListShortList
          extended by org.apache.commons.collections.primitives.adapters.ListShortList
All Implemented Interfaces:
java.io.Serializable, ShortCollection, ShortList

public class ListShortList
extends AbstractListShortList
implements java.io.Serializable

Adapts a Number-valued List to the ShortList interface.

This implementation delegates most methods to the provided List implementation in the "obvious" way.

Since:
Commons Primitives 1.0
Version:
$Revision: 1.3 $ $Date: 2003/10/16 20:49:39 $
Author:
Rodney Waldhoff
See Also:
Serialized Form

Field Summary
private  java.util.List _list
           
 
Constructor Summary
ListShortList(java.util.List list)
          Creates an ShortList wrapping the specified List.
 
Method Summary
protected  java.util.List getList()
           
static ShortList wrap(java.util.List list)
          Create an ShortList wrapping the specified List.
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractListShortList
add, addAll, equals, get, getCollection, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeElementAt, set, subList
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractCollectionShortCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, removeAll, removeElement, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.collections.primitives.ShortList
add, iterator
 
Methods inherited from interface org.apache.commons.collections.primitives.ShortCollection
addAll, clear, contains, containsAll, isEmpty, removeAll, removeElement, retainAll, size, toArray, toArray
 

Field Detail

_list

private java.util.List _list
Constructor Detail

ListShortList

public ListShortList(java.util.List list)
Creates an ShortList wrapping the specified List.

See Also:
wrap(java.util.List)
Method Detail

wrap

public static ShortList wrap(java.util.List list)
Create an ShortList wrapping the specified List. When the given list is null, returns null.

Parameters:
list - the (possibly null) List to wrap
Returns:
a ShortList wrapping the given list, or null when list is null.

getList

protected java.util.List getList()
Specified by:
getList in class AbstractListShortList


Copyright (c) 2002-2003 - Apache Software Foundation