public class AbstractRule<T> extends AbstractList<T> implements Rule<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
hash |
protected List<T> |
list |
modCount| Constructor and Description |
|---|
AbstractRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T o) |
List<T> |
asList()
Returns underlying collection as list.
|
boolean |
equals(Object obj) |
T |
get(int index) |
int |
hashCode() |
Iterator<T> |
iterator() |
T |
remove(int index) |
Rule<T> |
replaceAll(List<T> replacement)
Replaces all elements stored inside.
|
T |
set(int index,
T element) |
int |
size() |
Rule<T> |
unlock()
Unlocks immutable object by changing collection from
immutable to mutable
|
addAll, clear, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addAll, clear, contains, containsAll, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArraypublic List<T> asList()
Rulepublic Rule<T> replaceAll(List<T> replacement)
RulereplaceAll in interface Rule<T>replacement - New listpublic Rule<T> unlock()
Rulepublic int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>public T get(int index)
public void add(int index,
T element)
public T remove(int index)
public boolean add(T o)
add in interface Collection<T>add in interface List<T>add in class AbstractList<T>public int hashCode()
hashCode in interface Collection<T>hashCode in interface List<T>hashCode in class AbstractList<T>public boolean equals(Object obj)
equals in interface Collection<T>equals in interface List<T>equals in class AbstractList<T>Copyright © 2014. All rights reserved.