@Override public List<E> subList(int fromIndex, int toIndex) { if (fromIndex < 0 || fromIndex > toIndex) { throw indexOutOfBoundsException(fromIndex); } if (toIndex > size()) { throw indexOutOfBoundsException(toIndex); } if (fromIndex == toIndex) { return Collections.emptyList(); } else { return this; } }
@Override public List<E> subList(int fromIndex, int toIndex) { if (fromIndex < 0 || fromIndex > toIndex) { throw indexOutOfBoundsException(fromIndex); } if (toIndex > size()) { throw indexOutOfBoundsException(toIndex); } if (fromIndex == toIndex) { return Collections.emptyList(); } else { return this; } }
@Override public List<E> subList(int fromIndex, int toIndex) { if (fromIndex < 0 || fromIndex > toIndex) { throw indexOutOfBoundsException(fromIndex); } if (toIndex > size()) { throw indexOutOfBoundsException(toIndex); } if (fromIndex == toIndex) { return Collections.emptyList(); } else { return this; } }
@Override public List<E> subList(int fromIndex, int toIndex) { if (fromIndex < 0 || fromIndex > toIndex) { throw indexOutOfBoundsException(fromIndex); } if (toIndex > size()) { throw indexOutOfBoundsException(toIndex); } if (fromIndex == toIndex) { return Collections.emptyList(); } else { return this; } }
@Override public List<E> subList(int fromIndex, int toIndex) { if (fromIndex < 0 || fromIndex > toIndex) { throw indexOutOfBoundsException(fromIndex); } if (toIndex > size()) { throw indexOutOfBoundsException(toIndex); } if (fromIndex == toIndex) { return Collections.emptyList(); } else { return this; } }
@Override public List<E> subList(int fromIndex, int toIndex) { if (fromIndex < 0 || fromIndex > toIndex) { throw indexOutOfBoundsException(fromIndex); } if (toIndex > size()) { throw indexOutOfBoundsException(toIndex); } if (fromIndex == toIndex) { return Collections.emptyList(); } else { return this; } }
@Override public E get(int index) { if (index == 0) { return element; } throw indexOutOfBoundsException(index); }
@Override public ListIterator<E> listIterator(int index) { if (index == 0 || index == 1) { return new SingletonIterator(index); } throw indexOutOfBoundsException(index); }
@Override public ListIterator<E> listIterator(int index) { if (index == 0 || index == 1) { return new SingletonIterator(index); } throw indexOutOfBoundsException(index); }
@Override public E get(int index) { if (index == 0) { return element; } throw indexOutOfBoundsException(index); }
@Override public ListIterator<E> listIterator(int index) { if (index == 0 || index == 1) { return new SingletonIterator(index); } throw indexOutOfBoundsException(index); }
@Override public E get(int index) { if (index == 0) { return element; } throw indexOutOfBoundsException(index); }
@Override public E get(int index) { if (index == 0) { return element; } throw indexOutOfBoundsException(index); }
@Override public ListIterator<E> listIterator(int index) { if (index == 0 || index == 1) { return new SingletonIterator(index); } throw indexOutOfBoundsException(index); }
@Override public E get(int index) { if (index == 0) { return element; } throw indexOutOfBoundsException(index); }
@Override public ListIterator<E> listIterator(int index) { if (index == 0 || index == 1) { return new SingletonIterator(index); } throw indexOutOfBoundsException(index); }
@Override public E get(int index) { if (index == 0) { return element; } throw indexOutOfBoundsException(index); }
@Override public ListIterator<E> listIterator(int index) { if (index == 0 || index == 1) { return new SingletonIterator(index); } throw indexOutOfBoundsException(index); }