org.apache.commons.collections.primitives.adapters

Class ShortListList

public final class ShortListList extends AbstractShortListList implements Serializable

Adapts an ShortList to the List List interface.

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

Since: Commons Primitives 1.0

Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:38 $

Author: Rodney Waldhoff

Field Summary
ShortList_list
Constructor Summary
ShortListList(ShortList list)
Creates a List List wrapping the specified ShortList.
Method Summary
protected ShortListgetShortList()
static Listwrap(ShortList list)
Create a List List wrapping the specified ShortList.

Field Detail

_list

private ShortList _list

Constructor Detail

ShortListList

public ShortListList(ShortList list)
Creates a List List wrapping the specified ShortList.

See Also: ShortListList

Method Detail

getShortList

protected ShortList getShortList()

wrap

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

Parameters: list the (possibly null) ShortList to wrap

Returns: a List List wrapping the given list, or null when list is null.

Copyright (c) 2002-2003 - Apache Software Foundation