Class MessageList

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Cloneable , java.lang.Iterable , java.util.Collection , java.util.List , java.util.RandomAccess

    
    public class MessageList<T>
    extends ArrayList<E>
                        

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected transient int modCount
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean add(T t)
      void add(int index, T element)
      boolean addAll(@NonNull() Collection<out T> c)
      boolean addAll(int index, @NonNull() Collection<out T> c)
      • Methods inherited from class java.util.ArrayList

        clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractList

        equals, hashCode
      • Methods inherited from class java.util.List

        containsAll, copyOf, of
      • Methods inherited from class java.util.AbstractCollection

        toString
      • Methods inherited from class java.util.Collection

        parallelStream, stream
      • Methods inherited from class java.lang.Iterable

        iterator, spliterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageList

        MessageList(int maxCount, int initialCapacity)
      • MessageList

        MessageList(int maxCount)
      • MessageList

        MessageList(int maxCount, Collection<out T> c)