|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.kernel.util.UnmodifiableList<E>
Collections.unmodifiableList(List)
@Deprecated public class UnmodifiableList<E>
This is a read-only wrapper around any List. Query operations
will "read through" to the specified list. Attempts to modify the list
directly or via its iterator will result in a
java.lang.UnsupportedOperationException.
| Constructor Summary | |
|---|---|
UnmodifiableList(List<? extends E> list)
Deprecated. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(E element)
Deprecated. |
|
void |
add(int index,
E element)
Deprecated. |
|
boolean |
addAll(Collection<? extends E> collection)
Deprecated. |
|
boolean |
addAll(int index,
Collection<? extends E> collection)
Deprecated. |
|
void |
clear()
Deprecated. |
|
boolean |
contains(Object object)
Deprecated. |
|
boolean |
containsAll(Collection<?> collection)
Deprecated. |
|
boolean |
equals(Object object)
Deprecated. |
|
E |
get(int index)
Deprecated. |
|
int |
hashCode()
Deprecated. |
|
int |
indexOf(Object object)
Deprecated. |
|
boolean |
isEmpty()
Deprecated. |
|
Iterator<E> |
iterator()
Deprecated. |
|
int |
lastIndexOf(Object o)
Deprecated. |
|
ListIterator<E> |
listIterator()
Deprecated. |
|
ListIterator<E> |
listIterator(int index)
Deprecated. |
|
E |
remove(int index)
Deprecated. |
|
boolean |
remove(Object object)
Deprecated. |
|
boolean |
removeAll(Collection<?> collection)
Deprecated. |
|
boolean |
retainAll(Collection<?> collection)
Deprecated. |
|
E |
set(int index,
E element)
Deprecated. |
|
int |
size()
Deprecated. |
|
List<E> |
subList(int fromIndex,
int toIndex)
Deprecated. |
|
Object[] |
toArray()
Deprecated. |
|
|
toArray(T[] a)
Deprecated. |
|
String |
toString()
Deprecated. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnmodifiableList(List<? extends E> list)
| Method Detail |
|---|
public boolean add(E element)
add in interface Collection<E>add in interface List<E>
public void add(int index,
E element)
add in interface List<E>public boolean addAll(Collection<? extends E> collection)
addAll in interface Collection<E>addAll in interface List<E>
public boolean addAll(int index,
Collection<? extends E> collection)
addAll in interface List<E>public void clear()
clear in interface Collection<E>clear in interface List<E>public boolean contains(Object object)
contains in interface Collection<E>contains in interface List<E>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean equals(Object object)
equals in interface Collection<E>equals in interface List<E>equals in class Objectpublic E get(int index)
get in interface List<E>public int hashCode()
hashCode in interface Collection<E>hashCode in interface List<E>hashCode in class Objectpublic int indexOf(Object object)
indexOf in interface List<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface List<E>public int lastIndexOf(Object o)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>public E remove(int index)
remove in interface List<E>public boolean remove(Object object)
remove in interface Collection<E>remove in interface List<E>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<E>removeAll in interface List<E>public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<E>retainAll in interface List<E>
public E set(int index,
E element)
set in interface List<E>public int size()
size in interface Collection<E>size in interface List<E>
public List<E> subList(int fromIndex,
int toIndex)
subList 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 String toString()
toString in class Object
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||