|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.util.SetWrapperList
public class SetWrapperList
Wraps a set to provide a list interface.
All list methods not application to set throws an
UnsupportedOperationException
Constructor Summary | |
---|---|
SetWrapperList(Collection aDelegate)
Collection to delegate to. |
Method Summary | |
---|---|
void |
add(int index,
Object entry)
Does not support List methods UnsupportedOperationException . |
boolean |
add(Object obj)
|
boolean |
addAll(Collection coll)
|
boolean |
addAll(int index,
Collection coll)
Does not support List methods UnsupportedOperationException . |
void |
clear()
|
boolean |
contains(Object obj)
|
boolean |
containsAll(Collection coll)
|
Object |
get(int index)
Does not support List methods UnsupportedOperationException . |
int |
indexOf(Object object)
Does not support List methods UnsupportedOperationException . |
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object object)
Does not support List methods UnsupportedOperationException . |
ListIterator |
listIterator()
Does not support List methods UnsupportedOperationException . |
ListIterator |
listIterator(int index)
Does not support List methods UnsupportedOperationException . |
Object |
remove(int index)
Does not support List methods UnsupportedOperationException . |
boolean |
remove(Object obj)
|
boolean |
removeAll(Collection coll)
|
boolean |
retainAll(Collection coll)
|
Object |
set(int index,
Object object)
Does not support List methods UnsupportedOperationException . |
int |
size()
|
List |
subList(int start,
int offset)
Does not support List methods UnsupportedOperationException . |
Object[] |
toArray()
|
Object[] |
toArray(Object[] arr)
|
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 SetWrapperList(Collection aDelegate)
aDelegate
- delegateMethod Detail |
---|
public final boolean add(Object obj)
add
in interface Collection
add
in interface List
public final void add(int index, Object entry)
UnsupportedOperationException
.
add
in interface List
index
- Indexentry
- Entrypublic final boolean addAll(Collection coll)
addAll
in interface Collection
addAll
in interface List
public final boolean addAll(int index, Collection coll)
UnsupportedOperationException
.
addAll
in interface List
index
- Indexcoll
- Collection
public final void clear()
clear
in interface Collection
clear
in interface List
public final boolean contains(Object obj)
contains
in interface Collection
contains
in interface List
public final boolean containsAll(Collection coll)
containsAll
in interface Collection
containsAll
in interface List
public final Object get(int index)
UnsupportedOperationException
.
get
in interface List
index
- Index
public final int indexOf(Object object)
UnsupportedOperationException
.
indexOf
in interface List
object
- Object
public final boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
public final Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
public final int lastIndexOf(Object object)
UnsupportedOperationException
.
lastIndexOf
in interface List
object
- Object
public final ListIterator listIterator()
UnsupportedOperationException
.
listIterator
in interface List
public final ListIterator listIterator(int index)
UnsupportedOperationException
.
listIterator
in interface List
index
- Index
public final boolean remove(Object obj)
remove
in interface Collection
remove
in interface List
public final Object remove(int index)
UnsupportedOperationException
.
remove
in interface List
index
- Index
public final boolean removeAll(Collection coll)
removeAll
in interface Collection
removeAll
in interface List
public final boolean retainAll(Collection coll)
retainAll
in interface Collection
retainAll
in interface List
public final Object set(int index, Object object)
UnsupportedOperationException
.
set
in interface List
index
- Indexobject
- Object
public final int size()
size
in interface Collection
size
in interface List
public final List subList(int start, int offset)
UnsupportedOperationException
.
subList
in interface List
start
- Startoffset
- Offset
public final Object[] toArray()
toArray
in interface Collection
toArray
in interface List
public final Object[] toArray(Object[] arr)
toArray
in interface Collection
toArray
in interface List
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |