org.apache.commons.jexl2.internal
Class ArrayListWrapper
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<Object>
org.apache.commons.jexl2.internal.ArrayListWrapper
- All Implemented Interfaces:
- Iterable<Object>, Collection<Object>, List<Object>
public class ArrayListWrapper
- extends AbstractList<Object>
A class that wraps an array within an AbstractList.
It overrides all methods because introspection uses this class a a marker for wrapped arrays; the declared class
for any method is thus always ArrayListWrapper.
ArrayListWrapper
public ArrayListWrapper(Object anArray)
- Create the wrapper.
- Parameters:
anArray - array
get
public Object get(int index)
-
- Specified by:
get in interface List<Object>- Specified by:
get in class AbstractList<Object>
set
public Object set(int index,
Object element)
-
- Specified by:
set in interface List<Object>- Overrides:
set in class AbstractList<Object>
size
public int size()
-
- Specified by:
size in interface Collection<Object>- Specified by:
size in interface List<Object>- Specified by:
size in class AbstractCollection<Object>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<Object>- Specified by:
toArray in interface List<Object>- Overrides:
toArray in class AbstractCollection<Object>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface Collection<Object>- Specified by:
toArray in interface List<Object>- Overrides:
toArray in class AbstractCollection<Object>
indexOf
public int indexOf(Object o)
- Specified by:
indexOf in interface List<Object>- Overrides:
indexOf in class AbstractList<Object>
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection<Object>- Specified by:
contains in interface List<Object>- Overrides:
contains in class AbstractCollection<Object>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<Object>- Specified by:
isEmpty in interface List<Object>- Overrides:
isEmpty in class AbstractCollection<Object>
iterator
public Iterator<Object> iterator()
- Specified by:
iterator in interface Iterable<Object>- Specified by:
iterator in interface Collection<Object>- Specified by:
iterator in interface List<Object>- Overrides:
iterator in class AbstractList<Object>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll in interface Collection<Object>- Specified by:
containsAll in interface List<Object>- Overrides:
containsAll in class AbstractCollection<Object>
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf in interface List<Object>- Overrides:
lastIndexOf in class AbstractList<Object>
listIterator
public ListIterator<Object> listIterator()
- Specified by:
listIterator in interface List<Object>- Overrides:
listIterator in class AbstractList<Object>
listIterator
public ListIterator<Object> listIterator(int index)
- Specified by:
listIterator in interface List<Object>- Overrides:
listIterator in class AbstractList<Object>
subList
public List<Object> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List<Object>- Overrides:
subList in class AbstractList<Object>
add
public boolean add(Object o)
- Specified by:
add in interface Collection<Object>- Specified by:
add in interface List<Object>- Overrides:
add in class AbstractList<Object>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<Object>- Specified by:
remove in interface List<Object>- Overrides:
remove in class AbstractCollection<Object>
addAll
public boolean addAll(Collection<? extends Object> c)
- Specified by:
addAll in interface Collection<Object>- Specified by:
addAll in interface List<Object>- Overrides:
addAll in class AbstractCollection<Object>
addAll
public boolean addAll(int index,
Collection<? extends Object> c)
- Specified by:
addAll in interface List<Object>- Overrides:
addAll in class AbstractList<Object>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll in interface Collection<Object>- Specified by:
removeAll in interface List<Object>- Overrides:
removeAll in class AbstractCollection<Object>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll in interface Collection<Object>- Specified by:
retainAll in interface List<Object>- Overrides:
retainAll in class AbstractCollection<Object>
clear
public void clear()
- Specified by:
clear in interface Collection<Object>- Specified by:
clear in interface List<Object>- Overrides:
clear in class AbstractList<Object>
add
public void add(int index,
Object element)
- Specified by:
add in interface List<Object>- Overrides:
add in class AbstractList<Object>
remove
public Object remove(int index)
- Specified by:
remove in interface List<Object>- Overrides:
remove in class AbstractList<Object>
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.