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
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageList(int maxCount, int initialCapacity)
      MessageList(int maxCount)
      MessageList(int maxCount, Collection<out T> c)
    • 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(Collection<out T> c)
      boolean addAll(int index, Collection<out T> c)
      • Methods inherited from class java.util.ArrayList

        clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • 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)
    • Method Detail

      • add

         boolean add(T t)
      • add

         void add(int index, T element)
      • addAll

         boolean addAll(Collection<out T> c)
      • addAll

         boolean addAll(int index, Collection<out T> c)