public class FreezableList extends AbstractList
modCount| Constructor and Description |
|---|
FreezableList(List delegate) |
FreezableList(List delegate,
boolean immutable) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object element) |
boolean |
equals(Object obj) |
Object |
get(int index) |
int |
hashCode() |
boolean |
isImmutable() |
void |
makeElementsImmutable() |
void |
makeImmutable() |
Object |
remove(int index) |
Object |
set(int index,
Object element) |
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRangeaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic FreezableList(List delegate, boolean immutable)
public FreezableList(List delegate)
public boolean equals(Object obj)
equals in interface Collectionequals in interface Listequals in class AbstractListpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class AbstractListpublic void makeImmutable()
public boolean isImmutable()
public void makeElementsImmutable()
public int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionpublic Object get(int index)
get in interface Listget in class AbstractListpublic Object set(int index, Object element)
set in interface Listset in class AbstractListpublic void add(int index,
Object element)
add in interface Listadd in class AbstractListpublic Object remove(int index)
remove in interface Listremove in class AbstractListpublic List subList(int fromIndex, int toIndex)
subList in interface ListsubList in class AbstractListCopyright © 2018 JBoss by Red Hat. All rights reserved.