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

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.AbstractCollectionByteCollection
      extended by org.apache.commons.collections.primitives.adapters.AbstractListByteList
          extended by org.apache.commons.collections.primitives.adapters.ListByteList
All Implemented Interfaces:
java.io.Serializable, ByteCollection, ByteList

public class ListByteList
extends AbstractListByteList
implements java.io.Serializable

Adapts a Number-valued List to the ByteList 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
ListByteList(java.util.List list)
          Creates an ByteList wrapping the specified List.
 
Method Summary
protected  java.util.List getList()
           
static ByteList wrap(java.util.List list)
          Create an ByteList wrapping the specified List.
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractListByteList
add, addAll, equals, get, getCollection, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeElementAt, set, subList
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractCollectionByteCollection
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.ByteList
add, iterator
 
Methods inherited from interface org.apache.commons.collections.primitives.ByteCollection
addAll, clear, contains, containsAll, isEmpty, removeAll, removeElement, retainAll, size, toArray, toArray
 

Field Detail

_list

private java.util.List _list
Constructor Detail

ListByteList

public ListByteList(java.util.List list)
Creates an ByteList wrapping the specified List.

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

wrap

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

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

getList

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


Copyright (c) 2002-2003 - Apache Software Foundation