public class FreezableList extends AbstractList<Object>
modCount
Constructor and Description |
---|
FreezableList(List<Object> delegate) |
FreezableList(List<Object> 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<Object> |
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 boolean equals(Object obj)
equals
in interface Collection<Object>
equals
in interface List<Object>
equals
in class AbstractList<Object>
public int hashCode()
hashCode
in interface Collection<Object>
hashCode
in interface List<Object>
hashCode
in class AbstractList<Object>
public void makeImmutable()
public boolean isImmutable()
public void makeElementsImmutable()
public int size()
size
in interface Collection<Object>
size
in interface List<Object>
size
in class AbstractCollection<Object>
public Object get(int index)
public void add(int index, Object element)
public Object remove(int index)
Copyright © 2017 JBoss by Red Hat. All rights reserved.