|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.util.SetAsList<E>
E - public class SetAsList<E>
Wraps a set to provide a list interface.
All list methods not application to set throws an UnsupportedOperationException
| Constructor Summary | |
|---|---|
SetAsList(Set<E> set)
|
|
| Method Summary | ||
|---|---|---|
boolean |
add(E e)
|
|
void |
add(int index,
E element)
Does not support List methods UnsupportedOperationException. |
|
boolean |
addAll(Collection<? extends E> c)
|
|
boolean |
addAll(int index,
Collection<? extends E> c)
Does not support List methods UnsupportedOperationException. |
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
E |
get(int index)
Does not support List methods UnsupportedOperationException. |
|
int |
indexOf(Object o)
Does not support List methods UnsupportedOperationException. |
|
boolean |
isEmpty()
|
|
Iterator<E> |
iterator()
|
|
int |
lastIndexOf(Object o)
Does not support List methods UnsupportedOperationException. |
|
ListIterator<E> |
listIterator()
Does not support List methods UnsupportedOperationException. |
|
ListIterator<E> |
listIterator(int index)
Does not support List methods UnsupportedOperationException. |
|
E |
remove(int index)
Does not support List methods UnsupportedOperationException. |
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
E |
set(int index,
E element)
Does not support List methods UnsupportedOperationException. |
|
int |
size()
|
|
List<E> |
subList(int fromIndex,
int toIndex)
Does not support List methods UnsupportedOperationException. |
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public SetAsList(Set<E> set)
set - | Method Detail |
|---|
public int size()
size in interface Collection<E>size in interface List<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface List<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface List<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface List<E>public boolean add(E e)
add in interface Collection<E>add in interface List<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface List<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in interface List<E>
public boolean addAll(int index,
Collection<? extends E> c)
UnsupportedOperationException.
addAll in interface List<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in interface List<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in interface List<E>public void clear()
clear in interface Collection<E>clear in interface List<E>public E get(int index)
UnsupportedOperationException.
get in interface List<E>index - Index
public E set(int index,
E element)
UnsupportedOperationException.
set in interface List<E>
public void add(int index,
E element)
UnsupportedOperationException.
add in interface List<E>public E remove(int index)
UnsupportedOperationException.
remove in interface List<E>public int indexOf(Object o)
UnsupportedOperationException.
indexOf in interface List<E>public int lastIndexOf(Object o)
UnsupportedOperationException.
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
UnsupportedOperationException.
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
UnsupportedOperationException.
listIterator in interface List<E>
public List<E> subList(int fromIndex,
int toIndex)
UnsupportedOperationException.
subList in interface List<E>
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||