E
- public class SetAsList<E>
extends java.lang.Object
implements java.util.List<E>
UnsupportedOperationException
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
array |
private java.util.Set<E> |
set |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
add(int index,
E element)
Does not support List methods
UnsupportedOperationException . |
boolean |
addAll(java.util.Collection<? extends E> c) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c)
Does not support List methods
UnsupportedOperationException . |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
E |
get(int index)
Does not support List methods
UnsupportedOperationException . |
int |
indexOf(java.lang.Object o)
Does not support List methods
UnsupportedOperationException . |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
int |
lastIndexOf(java.lang.Object o)
Does not support List methods
UnsupportedOperationException . |
java.util.ListIterator<E> |
listIterator()
Does not support List methods
UnsupportedOperationException . |
java.util.ListIterator<E> |
listIterator(int index)
Does not support List methods
UnsupportedOperationException . |
E |
remove(int index)
Does not support List methods
UnsupportedOperationException . |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
E |
set(int index,
E element)
Does not support List methods
UnsupportedOperationException . |
int |
size() |
java.util.List<E> |
subList(int fromIndex,
int toIndex)
Does not support List methods
UnsupportedOperationException . |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
private final java.util.Set<E> set
private transient java.lang.Object[] array
public SetAsList(java.util.Set<E> set)
set
- public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<E> iterator()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean addAll(java.util.Collection<? extends E> c)
public boolean addAll(int index, java.util.Collection<? extends E> c)
UnsupportedOperationException
.addAll
in interface java.util.List<E>
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public void clear()
public E get(int index)
UnsupportedOperationException
.get
in interface java.util.List<E>
index
- Indexpublic E set(int index, E element)
UnsupportedOperationException
.set
in interface java.util.List<E>
public void add(int index, E element)
UnsupportedOperationException
.add
in interface java.util.List<E>
public E remove(int index)
UnsupportedOperationException
.remove
in interface java.util.List<E>
public int indexOf(java.lang.Object o)
UnsupportedOperationException
.indexOf
in interface java.util.List<E>
public int lastIndexOf(java.lang.Object o)
UnsupportedOperationException
.lastIndexOf
in interface java.util.List<E>
public java.util.ListIterator<E> listIterator()
UnsupportedOperationException
.listIterator
in interface java.util.List<E>
public java.util.ListIterator<E> listIterator(int index)
UnsupportedOperationException
.listIterator
in interface java.util.List<E>