MessageList

public class MessageList<T> extends ArrayList<E>

消息展示列表专用 list 当达到存储最大值后,底部插入新数据时,顶部数据丢弃, 顶部插入数据时,不考虑最大值,底部数据保留。

Constructors

Link copied to clipboard
public void MessageList(int maxCount, int initialCapacity)
public void MessageList(int maxCount)
public void MessageList(int maxCount, Collection<? extends T> c)

Functions

Link copied to clipboard
public boolean add(T t)
public void add(int index, T element)
Link copied to clipboard
public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index, Collection<? extends T> c)

Inherited functions

Link copied to clipboard
public void clear()
Link copied to clipboard
public Object clone()
Link copied to clipboard
public boolean contains(Object o)
Link copied to clipboard
public abstract boolean containsAll(Collection<? extends Object> p)
Link copied to clipboard
public static List<E> copyOf<E>(Collection<? extends E> coll)
Link copied to clipboard
public void ensureCapacity(int minCapacity)
Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
public void forEach(Consumer<? super E> action)
Link copied to clipboard
public E get(int index)
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public int indexOf(Object o)
Link copied to clipboard
public boolean isEmpty()
Link copied to clipboard
public abstract Iterator<T> iterator()
public Iterator<E> iterator()
Link copied to clipboard
public int lastIndexOf(Object o)
Link copied to clipboard
public ListIterator<E> listIterator(int index)
Link copied to clipboard
public static List<E> of<E>()
Link copied to clipboard
public Stream<E> parallelStream()
Link copied to clipboard
public E remove(int index)
public boolean remove(Object o)
Link copied to clipboard
public boolean removeAll(Collection<? extends Object> c)
Link copied to clipboard
public boolean removeIf(Predicate<? super E> filter)
Link copied to clipboard
public void replaceAll(UnaryOperator<E> operator)
Link copied to clipboard
public boolean retainAll(Collection<? extends Object> c)
Link copied to clipboard
public E set(int index, E element)
Link copied to clipboard
public int size()
Link copied to clipboard
public void sort(Comparator<? super E> c)
Link copied to clipboard
public Spliterator<T> spliterator()
public Spliterator<E> spliterator()
Link copied to clipboard
public Stream<E> stream()
Link copied to clipboard
public List<E> subList(int fromIndex, int toIndex)
Link copied to clipboard
public Array<Object> toArray()
public Array<T> toArray<T>(Array<T> a)
Link copied to clipboard
public String toString()
Link copied to clipboard
public void trimToSize()