|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.primitives.adapters.AbstractByteCollectionCollection
org.apache.commons.collections.primitives.adapters.AbstractByteListList
org.apache.commons.collections.primitives.adapters.ByteListList
Adapts an ByteList
to the
List
interface.
ByteList
implementation in the "obvious" way.
Constructor Summary | |
ByteListList(ByteList list)
Creates a List wrapping
the specified ByteList . |
Method Summary | |
void |
add(int index,
Object element)
|
boolean |
add(Object element)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
clear()
|
boolean |
contains(Object element)
|
boolean |
containsAll(Collection c)
|
boolean |
equals(Object obj)
|
Object |
get(int index)
|
protected ByteCollection |
getByteCollection()
|
protected ByteList |
getByteList()
|
int |
hashCode()
|
int |
indexOf(Object element)
|
boolean |
isEmpty()
|
Iterator |
iterator()
wraps the
ByteIterator
returned by my underlying
ByteCollection ,
if any. |
int |
lastIndexOf(Object element)
|
ListIterator |
listIterator()
wraps the
ByteListIterator
returned by my underlying
ByteList ,
if any. |
ListIterator |
listIterator(int index)
wraps the
ByteListIterator
returned by my underlying
ByteList ,
if any. |
Object |
remove(int index)
|
boolean |
remove(Object element)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
int |
size()
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] A)
|
String |
toString()
|
static List |
wrap(ByteList list)
Create a List wrapping
the specified ByteList . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
public ByteListList(ByteList list)
List
wrapping
the specified ByteList
.
wrap(org.apache.commons.collections.primitives.ByteList)
Method Detail |
public static List wrap(ByteList list)
List
wrapping
the specified ByteList
. When
the given list is null
,
returns null
.
list
- the (possibly null
)
ByteList
to wrap
List
wrapping the given
list, or null
when list is
null
.protected ByteList getByteList()
public void add(int index, Object element)
add
in interface List
public boolean addAll(int index, Collection c)
addAll
in interface List
public Object get(int index)
get
in interface List
public int indexOf(Object element)
indexOf
in interface List
public int lastIndexOf(Object element)
lastIndexOf
in interface List
public ListIterator listIterator()
wraps
the
ByteListIterator
returned by my underlying
ByteList
,
if any.
listIterator
in interface List
public ListIterator listIterator(int index)
wraps
the
ByteListIterator
returned by my underlying
ByteList
,
if any.
listIterator
in interface List
public Object remove(int index)
remove
in interface List
public Object set(int index, Object element)
set
in interface List
public List subList(int fromIndex, int toIndex)
subList
in interface List
public boolean equals(Object obj)
equals
in interface List
public int hashCode()
hashCode
in interface List
protected final ByteCollection getByteCollection()
public boolean add(Object element)
add
in interface Collection
public boolean addAll(Collection c)
addAll
in interface Collection
public void clear()
clear
in interface Collection
public boolean contains(Object element)
contains
in interface Collection
public boolean containsAll(Collection c)
containsAll
in interface Collection
public String toString()
public boolean isEmpty()
isEmpty
in interface Collection
public Iterator iterator()
wraps
the
ByteIterator
returned by my underlying
ByteCollection
,
if any.
iterator
in interface Collection
public boolean remove(Object element)
remove
in interface Collection
public boolean removeAll(Collection c)
removeAll
in interface Collection
public boolean retainAll(Collection c)
retainAll
in interface Collection
public int size()
size
in interface Collection
public Object[] toArray()
toArray
in interface Collection
public Object[] toArray(Object[] A)
toArray
in interface Collection
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |