Interface ReadOnlyList<E>

Type Parameters:
E - The type of the list elements.
All Superinterfaces:
Iterable<E>

@Private public interface ReadOnlyList<E> extends Iterable<E>
A ReadOnlyList is a unmodifiable list, which supports read-only operations.
  • Method Details

    • isEmpty

      boolean isEmpty()
      Is this an empty list?
    • size

      int size()
      Returns:
      the size of this list.
    • get

      E get(int i)
      Returns:
      the i-th element.