Class LimitList<T>

Type Parameters:
T -
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess
Direct Known Subclasses:
DocumentSymbolsResult, SymbolInformationResult

public class LimitList<T> extends ArrayList<T>
List class which checks the limit when item is added.
See Also:
  • Constructor Details

  • Method Details

    • add

      public void add(int index, T element)
      Specified by:
      add in interface List<T>
      Overrides:
      add in class ArrayList<T>
    • add

      public boolean add(T e)
      Specified by:
      add in interface Collection<T>
      Specified by:
      add in interface List<T>
      Overrides:
      add in class ArrayList<T>
    • getLimit

      protected AtomicLong getLimit()
    • isResultLimitExceeded

      public boolean isResultLimitExceeded()
      Returns true if the symbols limit has been exceeded while computing symbols information, false otherwise
      Returns:
      true if the symbols limit has been exceeded while computing symbols information, false otherwise