public class SimpleNamedFilterList extends Object implements NamedFilterList
NamedFilterList
implementation that is supported by a backing List
instance and a simple
name
property. All List
method implementations are immediately delegated to the
wrapped backing list.Constructor and Description |
---|
SimpleNamedFilterList(String name)
Creates a new
SimpleNamedFilterList instance with the specified name , defaulting to a new
ArrayList instance as the backing list. |
SimpleNamedFilterList(String name,
List<Filter> backingList)
Creates a new
SimpleNamedFilterList instance with the specified name and backingList . |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Filter filter) |
void |
add(int index,
Filter filter) |
boolean |
addAll(Collection<? extends Filter> c) |
boolean |
addAll(int index,
Collection<? extends Filter> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Filter |
get(int index) |
String |
getName()
Returns the configuration-unique name assigned to this
Filter list. |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<Filter> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Filter> |
listIterator() |
ListIterator<Filter> |
listIterator(int index) |
FilterChain |
proxy(FilterChain orig)
Returns a new
FilterChain instance that will first execute this list's Filter s (in list order)
and end with the execution of the given filterChain instance. |
Filter |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
Filter |
set(int index,
Filter filter) |
protected void |
setName(String name) |
int |
size() |
List<Filter> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public SimpleNamedFilterList(String name)
SimpleNamedFilterList
instance with the specified name
, defaulting to a new
ArrayList
instance as the backing list.name
- the name to assign to this instance.IllegalArgumentException
- if name
is null or empty.public SimpleNamedFilterList(String name, List<Filter> backingList)
SimpleNamedFilterList
instance with the specified name
and backingList
.name
- the name to assign to this instance.backingList
- the list instance used to back all of this class's List
method implementations.IllegalArgumentException
- if name
is null or empty.NullPointerException
- if the backing list is null
.public String getName()
NamedFilterList
Filter
list.getName
in interface NamedFilterList
Filter
list.public FilterChain proxy(FilterChain orig)
NamedFilterList
FilterChain
instance that will first execute this list's Filter
s (in list order)
and end with the execution of the given filterChain
instance.proxy
in interface NamedFilterList
orig
- the FilterChain
instance to execute after this list's Filter
s have executed.FilterChain
instance that will first execute this list's Filter
s (in list order)
and end with the execution of the given filterChain
instance.public boolean addAll(Collection<? extends Filter> c)
public boolean addAll(int index, Collection<? extends Filter> c)
public void clear()
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Filter>
containsAll
in interface List<Filter>
public boolean isEmpty()
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Filter>
public ListIterator<Filter> listIterator()
listIterator
in interface List<Filter>
public ListIterator<Filter> listIterator(int index)
listIterator
in interface List<Filter>
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.