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

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.AbstractCollectionCharCollection
      extended by org.apache.commons.collections.primitives.adapters.AbstractListCharList
          extended by org.apache.commons.collections.primitives.adapters.ListCharList
All Implemented Interfaces:
java.io.Serializable, CharCollection, CharList

public class ListCharList
extends AbstractListCharList
implements java.io.Serializable

Adapts a Number-valued List to the CharList 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:38 $
Author:
Rodney Waldhoff
See Also:
Serialized Form

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

Field Detail

_list

private java.util.List _list
Constructor Detail

ListCharList

public ListCharList(java.util.List list)
Creates an CharList wrapping the specified List.

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

wrap

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

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

toString

public java.lang.String toString()
Overrides:
toString in class AbstractCollectionCharCollection

getList

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


Copyright (c) 2002-2003 - Apache Software Foundation