E - The type of event in this history.public class BasicUserHistory<E extends Event> extends AbstractUserHistory<E> implements UserHistory<E>
History.forUser(long, List)modCount| Modifier and Type | Method and Description |
|---|---|
<T extends Event> |
filter(Class<T> type)
Filter the user history to only contain elements of a particular type.
|
UserHistory<E> |
filter(Predicate<? super E> pred)
Filter the user history with a predicate.
|
E |
get(int i) |
long |
getUserId()
Retrieve the user ID.
|
Iterator<E> |
iterator() |
int |
size() |
List<E> |
subList(int from,
int to) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
itemSet, memoizeadd, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, setaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waititemSet, memoizeadd, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliteratorparallelStream, removeIf, streampublic long getUserId()
UserHistorygetUserId in interface UserHistory<E extends Event>public E get(int i)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] a)
public <T extends Event> UserHistory<T> filter(Class<T> type)
This implementation filters into a new BasicUserHistory backed
by an ArrayList.
filter in interface UserHistory<E extends Event>T - The type of element to include.type - The type of elements to include.public UserHistory<E> filter(Predicate<? super E> pred)
This implementation filters into a new BasicUserHistory backed
by an ArrayList.
filter in interface UserHistory<E extends Event>pred - The predicate to with which to filter the history.