Interface SparseList.Segment<E>

All Known Implementing Classes:
SparseList.AbsentSegment, SparseList.PresentSegment
Enclosing class:
SparseList<E>

private static interface SparseList.Segment<E>
  • Method Details

    • isPresent

      boolean isPresent()
    • getLength

      int getLength()
    • getPresentCount

      int getPresentCount()
    • getPresentCountBetween

      int getPresentCountBetween(int from, int to)
    • isPresent

      boolean isPresent(int index)
    • get

      Optional<E> get(int index)
    • getOrThrow

      E getOrThrow(int index)
    • setOrThrow

      void setOrThrow(int index, E elem)
    • appendTo

      List<E> appendTo(List<E> acc)
    • appendRangeTo

      List<E> appendRangeTo(List<E> acc, int from, int to)
    • subSegment

      SparseList.Segment<E> subSegment(int from, int to)
    • possiblyDestructiveAppend

      boolean possiblyDestructiveAppend(SparseList.Segment<E> suffix)
    • getStatsBetween

      default SparseList.Stats getStatsBetween(int from, int to)