# MessageList

public class MessageList<T> extends ArrayList<E>

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

## Constructors

MessageList
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

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

## Inherited functions

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