public class BasicItemEventList<E extends Event> extends Object implements ItemEventCollection<E>, List<E>
List-backed item event collection.
Constructor and Description |
---|
BasicItemEventList(long item,
Iterable<? extends E> evts)
Construct an item event list.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
E |
get(int index) |
long |
getItemId()
Get the item ID associated with this collection.
|
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public BasicItemEventList(long item, Iterable<? extends E> evts)
Construct an item event list.
item
- The item ID.evts
- The events (will be defensively copied with ImmutableList.copyOf(Collection)
).public long getItemId()
ItemEventCollection
Get the item ID associated with this collection.
getItemId
in interface ItemEventCollection<E extends Event>
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E extends Event>
containsAll
in interface List<E extends Event>
public boolean addAll(Collection<? extends E> c)
public boolean addAll(int index, Collection<? extends E> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public boolean equals(Object o)
public int hashCode()
public int lastIndexOf(Object o)
lastIndexOf
in interface List<E extends Event>
public ListIterator<E> listIterator()
listIterator
in interface List<E extends Event>
public ListIterator<E> listIterator(int index)
listIterator
in interface List<E extends Event>