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, removeRange
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public FreezableList(List delegate, boolean immutable)
public FreezableList(List delegate)
public boolean equals(Object obj)
equals
in interface Collection
equals
in interface List
equals
in class AbstractList
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class AbstractList
public void makeImmutable()
public boolean isImmutable()
public void makeElementsImmutable()
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public Object get(int index)
get
in interface List
get
in class AbstractList
public Object set(int index, Object element)
set
in interface List
set
in class AbstractList
public void add(int index, Object element)
add
in interface List
add
in class AbstractList
public Object remove(int index)
remove
in interface List
remove
in class AbstractList
public List subList(int fromIndex, int toIndex)
subList
in interface List
subList
in class AbstractList
Copyright © 2021 JBoss by Red Hat. All rights reserved.