Class BreakableList<E>
- Type Parameters:
E
- The elements type for theList
.
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
,SequencedCollection<E>
,Breakable
,SupportedMethods
A list that can be broken in well-defined ways in order to test collection utilities or testing classes.
Breaks
In addition to the breaks for BreakableSequencedCollection
, the breaks found in [?] are also supported.
Builder methods are provided to make declaring a broken list easier, for example:
BreakableList<Integer> broken = Breakables.buildList(1, 2)
.withBreak(List.ADD_ALL_AT_INDEX_DOES_NOT_ADD_ANY_ELEMENTS)
.build();
- Since:
- 1.0.0
- Author:
- evanbergstrom
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.soliscode.test.breakable.BreakableSequencedCollection
BreakableSequencedCollection.Builder<E>
Nested classes/interfaces inherited from class org.soliscode.test.breakable.BreakableCollection
BreakableCollection.AbstractBuilder<B extends BreakableCollection.AbstractBuilder<B,
C, E>, C extends BreakableCollection<E>, E>, BreakableCollection.WithProvider<E> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Break
The addAll method adds to the end of the collection.static final Break
The addAll method always return a result offalse
, even if the element is added.static final Break
The addAll method always returns the opposite of the appropriate result.static final Break
The addAll method always return a result oftrue
, even if the element is not added.static final Break
The addAll method will not add any elements to the collectionstatic final Break
The addAll method method throws the wrong exception if it is not supported.static final Break
The addAll method method throws the wrong exception when the index is out of bounds.static final Break
The addAll method method throws the wrong exception if the argument is null.static final Break
The add method adds the element at the next position.static final Break
The add method adds the element at the previous position.static final Break
The add method will not add an element to the collectionstatic final Break
The add method throws the wrong exception when the index is out of bounds.static final Break
The get method always returnsnull
static final Break
The get method always returns the first element.static final Break
The get method always returns the last element.static final Break
The get method returnsnull
on a bad index instead of throwing en exception.static final Break
The get method returns the next element (i.e. at index + 1).static final Break
The get method returns the previous element (i.e. at index - 1).static final Break
The get method throws the wrong exception on a bad index.static final Break
The remove method always returnsnull
static final Break
The remove method does not remove the element.static final Break
The remove method removes the next element.static final Break
The remove method removes the previous elementstatic final Break
The remove method returnsnull
when the index is out of bounds.static final Break
The remove method throws the wrong exception when the index is out of bounds.static final Break
The replaceAll method does not replace any elementsstatic final Break
The replaceAll method skips the first element.static final Break
The replaceAll method skips the last elementstatic final Break
The set method always returnsnull
static final Break
The set method changes the next element (i.e. at index + 1).static final Break
The set method changes the previous element (i.e. at index - 1).static final Break
The set method does not change the element.static final Break
The set method returnsnull
on a bad index instead of throwing en exception.static final Break
The set method throws the wrong exception on a bad index.static final Break
The sort method does not sort the elements.static final Break
The sort method sorts the elements in the reverse order.static final Break
Fields inherited from class org.soliscode.test.breakable.BreakableSequencedCollection
ADD_FIRST_ADDS_TO_END, ADD_FIRST_DOES_NOT_ADD_ELEMENT, ADD_LAST_ADDS_TO_FRONT, ADD_LAST_DOES_NOT_ADD_ELEMENT, GET_FIRST_ALWAYS_THROWS, GET_FIRST_RETURNS_NULL, GET_FIRST_SKIPS_FIRST_ELEMENT, GET_LAST_ALWAYS_THROWS, GET_LAST_RETURNS_NULL, GET_LAST_SKIPS_LAST_ELEMENT, REMOVE_FIRST_ALWAYS_THROWS, REMOVE_FIRST_DOES_NOT_REMOVE_ELEMENT, REMOVE_FIRST_RETURNS_NULL, REMOVE_LAST_ALWAYS_THROWS, REMOVE_LAST_DOES_NOT_REMOVE_ELEMENT, REMOVE_LAST_RETURNS_NULL, REVERSED_DOES_NOT_REVERSE_COLLECTION, REVERSED_MODIFIES_THE_COLLECTION
Fields inherited from class org.soliscode.test.breakable.BreakableCollection
ADD_ALL_ALWAYS_RETURNS_FALSE, ADD_ALL_ALWAYS_RETURNS_OPPOSITE_VALUE, ADD_ALL_ALWAYS_RETURNS_TRUE, ADD_ALL_DOES_NOT_ADD_ANY_ELEMENTS, ADD_ALL_SKIPS_FIRST_ELEMENT, ADD_ALL_SKIPS_LAST_ELEMENT, ADD_ALWAYS_RETURNS_FALSE, ADD_ALWAYS_RETURNS_OPPOSITE_VALUE, ADD_ALWAYS_RETURNS_TRUE, ADD_DOES_NOT_ADD_ELEMENT, CLEAR_DOES_NOT_REMOVE_ANY_ELEMENTS, CLEAR_SKIPS_FIRST_ELEMENT, CLEAR_SKIPS_LAST_ELEMENT, CONTAINS_ALL_ALWAYS_RETURNS_FALSE, CONTAINS_ALL_ALWAYS_RETURNS_TRUE, CONTAINS_ALL_RETURNS_OPPOSITE_VALUE, CONTAINS_ALWAYS_RETURNS_FALSE, CONTAINS_ALWAYS_RETURNS_TRUE, CONTAINS_RETURNS_OPPOSITE_VALUE, IS_EMPTY_ALWAYS_RETURNS_FALSE, IS_EMPTY_ALWAYS_RETURNS_TRUE, IS_EMPTY_RETURNS_OPPOSITE_VALUE, REMOVE_ALL_ALWAYS_RETURNS_FALSE, REMOVE_ALL_ALWAYS_RETURNS_OPPOSITE_VALUE, REMOVE_ALL_ALWAYS_RETURNS_TRUE, REMOVE_ALL_DOES_NOT_REMOVE_ANY_ELEMENTS, REMOVE_ALL_SKIPS_FIRST_ELEMENT, REMOVE_ALL_SKIPS_LAST_ELEMENT, REMOVE_ALWAYS_RETURNS_FALSE, REMOVE_ALWAYS_RETURNS_OPPOSITE_VALUE, REMOVE_ALWAYS_RETURNS_TRUE, REMOVE_DOES_NOT_REMOVE_ELEMENT, REMOVE_IF_ALWAYS_RETURNS_FALSE, REMOVE_IF_ALWAYS_RETURNS_OPPOSITE_VALUE, REMOVE_IF_ALWAYS_RETURNS_TRUE, REMOVE_IF_DOES_NOT_REMOVE_ANY_ELEMENTS, REMOVE_IF_SKIPS_FIRST_ELEMENT, REMOVE_IF_SKIPS_LAST_ELEMENT, RETAIN_ALL_ALWAYS_RETURNS_FALSE, RETAIN_ALL_ALWAYS_RETURNS_OPPOSITE_VALUE, RETAIN_ALL_ALWAYS_RETURNS_TRUE, RETAIN_ALL_DOES_NOT_RETAIN_ANY_ELEMENTS, RETAIN_ALL_SKIPS_FIRST_ELEMENT, RETAIN_ALL_SKIPS_LAST_ELEMENT, SIZE_ALWAYS_RETURNS_CONSTANT_VALUE, SIZE_ALWAYS_RETURNS_ZERO, TO_ARRAY_MISSING_FIRST_ELEMENT, TO_ARRAY_MISSING_LAST_ELEMENT, TO_ARRAY_RETURNS_EMPTY_ARRAY, TO_ARRAY_RETURNS_NULL, TO_ARRAY_STORE_DOES_NOT_COPY_ELEMENTS, TO_ARRAY_STORE_MISSING_FIRST_ELEMENT, TO_ARRAY_STORE_MISSING_LAST_ELEMENT, TO_ARRAY_STORE_RETURNS_EMPTY_ARRAY, TO_ARRAY_STORE_RETURNS_NULL
Fields inherited from class org.soliscode.test.breakable.BreakableIterable
FOR_EACH_DOES_NOT_CALL_ACTION, FOR_EACH_SKIPS_FIRST_ELEMENT, FOR_EACH_SKIPS_LAST_ELEMENT, FOR_EACH_THROWS_WRONG_EXCEPTION_FOR_NULL_ARGUMENT
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty list that has no breaks.BreakableList
(@NotNull List<E> collection) Creates a breakable iterable from an iterable.BreakableList
(@NotNull List<E> c, @NotNull Collection<Break> breaks, int characteristics) Creates aBreakableSequencedCollection
from en existing collection and specifying the breaks and collection characteristics.BreakableList
(@NotNull BreakableList<E> other) Creates a breakable sequenced collection from an existing instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
addAll
(int index, @NotNull Collection<? extends E> c) Break Description ADD_ALL_AT_INDEX_DOES_NOT_ADD_ANY_ELEMENTS The addAll
method will not add any elements to the collection.get
(int index) Break Description GET_ALWAYS_RETURNS_NULL The get
method always returnsnull
GET_ALWAYS_RETURNS_THE_FIRST_ELEMENT The get
methods always returns the first element.int
int
@NotNull ListIterator
<E> @NotNull ListIterator
<E> listIterator
(int index) remove
(int index) void
replaceAll
(UnaryOperator<E> operator) Break Description REPLACE_ALL_DOES_NOT_REPLACE_ELEMENTS The replaceAll
method does not replace any elementsREPLACE_ALL_SKIPS_FIRST_ELEMENT The replaceAll
method skips the first elementREPLACE_ALL_SKIPS_LAST_ELEMENT The replaceAll
method skips the last elementreversed()
Implements the reversed method from theSequencedCollection
interface.Break Description SET_DOES_NOT_CHANGE_THE_ELEMENT The set
method does not change the element.void
sort
(Comparator<? super E> c) Break Description SORT_DOES_NOT_SORT_THE_ELEMENTS The sort
method does not sort the elements.subList
(int fromIndex, int toIndex) Methods inherited from class org.soliscode.test.breakable.BreakableSequencedCollection
addFirst, addLast, getFirst, getLast, removeFirst, removeLast
Methods inherited from class org.soliscode.test.breakable.BreakableCollection
add, addAll, checkArgument, checkNewElement, clear, collectionProvider, collectionProvider, contains, containsAll, isEmpty, permitsDuplicates, permitsIncompatibleTypes, permitsNulls, remove, removeAll, removeIf, retainAll, setPermitsDuplicates, setPermitsIncompatibleTypes, setPermitsNulls, size, toArray, toArray, unbroken
Methods inherited from class org.soliscode.test.breakable.BreakableIterable
equals, forEach, hashCode, iterableProvider, iterableProvider, iterator, spliterator, toString
Methods inherited from class org.soliscode.test.breakable.AbstractBreakable
addBreaks, breaks, hasBreak
Methods inherited from class org.soliscode.test.OptionalMethodSupport
doesNotSupportMethod, supportsMethod, unsupportedMethods
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
ADD_ALL_AT_INDEX_ALWAYS_RETURNS_TRUE
-
ADD_ALL_AT_INDEX_ALWAYS_RETURNS_FALSE
-
ADD_ALL_AT_INDEX_ALWAYS_RETURNS_OPPOSITE_VALUE
-
ADD_ALL_AT_INDEX_ADDS_TO_THE_END
-
ADD_ALL_AT_INDEX_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX
-
ADD_ALL_AT_INDEX_THROWS_WRONG_EXCEPTION_IF_NOT_SUPPORTED
-
ADD_ALL_AT_INDEX_THROWS_WRONG_EXCEPTION_WHEN_ARGUMENT_IS_NULL
-
ADD_ALL_AT_INDEX_DOES_NOT_ADD_ANY_ELEMENTS
-
ADD_AT_INDEX_DOES_NOT_ADD_THE_ELEMENT
-
ADD_AT_INDEX_ADDS_AT_NEXT_POSITION
-
ADD_AT_INDEX_ADDS_AT_PREVIOUS_POSITION
-
ADD_AT_INDEX_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX
-
GET_ALWAYS_RETURNS_NULL
-
GET_ALWAYS_RETURNS_THE_FIRST_ELEMENT
-
GET_ALWAYS_RETURNS_THE_LAST_ELEMENT
-
GET_RETURNS_THE_NEXT_ELEMENT
-
GET_RETURNS_THE_PREVIOUS_ELEMENT
-
GET_RETURNS_NULL_ON_BAD_INDEX
-
GET_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX
-
REMOVE_AT_INDEX_DOES_NOT_REMOVE_THE_ELEMENT
-
REMOVE_AT_INDEX_REMOVES_THE_NEXT_ELEMENT
-
REMOVE_AT_INDEX_REMOVES_THE_PREVIOUS_ELEMENT
-
REMOVE_AT_INDEX_RETURNS_NULL_ON_BAD_INDEX
-
REMOVE_AT_INDEX_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX
-
REMOVE_AT_INDEX_ALWAYS_RETURNS_NULL
-
REPLACE_ALL_DOES_NOT_REPLACE_ELEMENTS
The replaceAll method does not replace any elements- See Also:
-
REPLACE_ALL_SKIPS_FIRST_ELEMENT
The replaceAll method skips the first element.- See Also:
-
REPLACE_ALL_SKIPS_LAST_ELEMENT
The replaceAll method skips the last element- See Also:
-
SET_DOES_NOT_CHANGE_THE_ELEMENT
-
SET_ALWAYS_RETURNS_NULL
-
SET_CHANGES_THE_NEXT_ELEMENT
-
SET_CHANGES_THE_PREVIOUS_ELEMENT
-
SET_RETURNS_NULL_ON_BAD_INDEX
-
SET_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX
-
SORT_REVERSES_THE_ORDER
-
SORT_THROWS_ON_NULL_ARGUMENT
-
SORT_DOES_NOT_SORT_THE_ELEMENTS
-
-
Constructor Details
-
BreakableList
public BreakableList()Creates an empty list that has no breaks. -
BreakableList
Creates a breakable sequenced collection from an existing instance.- Parameters:
other
- the breakable collection to copy.
-
BreakableList
-
BreakableList
public BreakableList(@NotNull @NotNull List<E> c, @NotNull @NotNull Collection<Break> breaks, int characteristics) Creates aBreakableSequencedCollection
from en existing collection and specifying the breaks and collection characteristics. Rather than calling this constructor directly, consider using the builderBreakableCollection.Builder
.- Parameters:
c
- the initial elements for the breakable collection.breaks
- the breaks for the collection.characteristics
- the characteristics for the collection.- Throws:
NullPointerException
- if either thec
or thebreaks
parameters are null.
-
-
Method Details
-
reversed
Description copied from class:BreakableSequencedCollection
Implements the reversed method from the
SequencedCollection
interface. This method can be broken using the following collection breaks:- REVERSED_DOES_NOT_REVERSE_COLLECTION
- REVERSED_MODIFIES_THE_COLLECTION
A collection that has any of these breaks can be constructed using the builder:
Collection<Integer> collection = Breakables.buildSequencedCollection(1,2,3,4,5) .withBreak(CollectionBreaks.REVERSED_DOES_NOT_REVERSE_COLLECTION) .build();
- Specified by:
reversed
in interfaceList<E>
- Specified by:
reversed
in interfaceSequencedCollection<E>
- Overrides:
reversed
in classBreakableSequencedCollection<E>
- Returns:
- a collection with the elements in the reverse order.
- See Also:
-
addAll
Break Description ADD_ALL_AT_INDEX_DOES_NOT_ADD_ANY_ELEMENTS The addAll
method will not add any elements to the collection.ADD_ALL_AT_INDEX_ADDS_TO_THE_END The addAll
method adds to the end of the collection.ADD_ALL_AT_INDEX_ALWAYS_RETURNS_TRUE The addAll
method always return a result oftrue
, even if the element is not added.ADD_ALL_AT_INDEX_ALWAYS_RETURNS_FALSE The addAll
method always returnsfalse
ADD_ALL_AT_INDEX_ALWAYS_RETURNS_OPPOSITE_VALUE The addAll
method always returnstrue
ADD_ALL_AT_INDEX_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX The addAll
method throws the wrong exception when the index is out of bounds.ADD_ALL_AT_INDEX_THROWS_WRONG_EXCEPTION_IF_NOT_SUPPORTED The addAll
method throws the wrong exception if it is not supported.ADD_ALL_AT_INDEX_THROWS_WRONG_EXCEPTION_WHEN_ARGUMENT_IS_NULL The addAll
method throws the wrong exception when the argument is null.A collection that has any of these breaks can be constructed using the builder:
Collection<Integer> collection = Breakables.buildList(1,2,3,4,5) .withBreak(ADD_ALL_AT_INDEX_ALWAYS_RETURNS_TRUE) .build();
- Specified by:
addAll
in interfaceList<E>
- Parameters:
index
- index at which to insert the first element from the specified collection.c
- collection containing elements to be added to this list- Returns:
- 'true' if this list changed as a result of the call
- Throws:
UnsupportedOperationException
- if the 'addAll' operation is not supported by this listClassCastException
- if the class of an element of the specified collection prevents it from being added to this listNullPointerException
- if the specified collection contains one or more null elements and this list does not permit null elements, or if the specified collection is nullIllegalArgumentException
- if some property of an element of the specified collection prevents it from being added to this listIndexOutOfBoundsException
- if the index is out of range ('index < 0 || index > size()')- See Also:
-
replaceAll
Break Description REPLACE_ALL_DOES_NOT_REPLACE_ELEMENTS The replaceAll
method does not replace any elementsREPLACE_ALL_SKIPS_FIRST_ELEMENT The replaceAll
method skips the first elementREPLACE_ALL_SKIPS_LAST_ELEMENT The replaceAll
method skips the last elementA collection that has any of these breaks can be constructed using the builder:
Collection<Integer> collection = Breakables.buildList(1,2,3,4,5) .withBreak(REPLACE_ALL_DOES_NOT_REPLACE_ELEMENTS) .build();
- Specified by:
replaceAll
in interfaceList<E>
- Throws:
UnsupportedOperationException
- if thereplaceAll
operation is not supported by this listNullPointerException
- if the specified operator is null or if the operator result is a null value and this list does not permit null elements.- See Also:
-
sort
Break Description SORT_DOES_NOT_SORT_THE_ELEMENTS The sort
method does not sort the elements.SORT_REVERSES_THE_ORDER The sort
method sorts the elements in the reverse order.SORT_THROWS_ON_NULL_ARGUMENT The sort
method throws aNullPointerException
if the argument isnull
A collection that has any of these breaks can be constructed using the builder:
Collection<Integer> collection = Breakables.buildList(1,2,3,4,5) .withBreak(SORT_DOES_NOT_SORT_THE_ELEMENTS) .build();
- Specified by:
sort
in interfaceList<E>
- Parameters:
c
- the Comparatorused to compare list elements. A
nullvalue indicates that the elements' [natural ordering][Comparable] should be used. @throws ClassCastException if the list contains elements that are not mutually comparable using the specified comparator @throws UnsupportedOperationException if the
sort` operation is not supported by this list.- See Also:
-
get
Break Description GET_ALWAYS_RETURNS_NULL The get
method always returnsnull
GET_ALWAYS_RETURNS_THE_FIRST_ELEMENT The get
methods always returns the first element.GET_ALWAYS_RETURNS_THE_LAST_ELEMENT The get
methods always returns the last element.GET_RETURNS_THE_NEXT_ELEMENT The get
methods returns the next element (i.e. at index + 1).GET_RETURNS_THE_PREVIOUS_ELEMENT The get
methods returns the previous element (i.e. at index - 1).GET_RETURNS_NULL_ON_BAD_INDEX The get
methods returnsnull
on a bad index instead of throwing en exception.GET_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX The get
methods throws the wrong exception on a bad index.A collection that has any of these breaks can be constructed using the builder:
Collection<Integer> collection = Breakables.buildList(1,2,3,4,5) .withBreak(GET_ALWAYS_RETURNS_NULL) .build();
- Specified by:
get
in interfaceList<E>
- Parameters:
index
- index of the element to return.- Returns:
- the element at the specified position in this list, or possibly a different element if the list is broken.
- Throws:
IndexOutOfBoundsException
- if the index is out of rangeindex < 0 || index >= size()}
-
set
Break Description SET_DOES_NOT_CHANGE_THE_ELEMENT The set
method does not change the element.SET_ALWAYS_RETURNS_NULL The set
method always returnsnull
SET_CHANGES_THE_NEXT_ELEMENT The set
methods changes the next element (i.e. at index + 1).SET_CHANGES_THE_PREVIOUS_ELEMENT The set
methods changes the previous element (i.e. at index - 1).SET_RETURNS_NULL_ON_BAD_INDEX The set
methods returnsnull
on a bad index instead of throwing en exception.SET_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX The get
methods throws the wrong exception on a bad index.A collection that has any of these breaks can be constructed using the builder:
Collection<Integer> collection = Breakables.buildList(1,2,3,4,5) .withBreak(SET_DOES_NOT_CHANGE_THE_ELEMENT) .build();
- Specified by:
set
in interfaceList<E>
- Parameters:
index
- index of the element to return.element
- the element to add at the index.- Returns:
- the element at the specified position in this list, or possibly a different element if the list is broken.
- Throws:
IndexOutOfBoundsException
- if the index is out of rangeindex < 0 || index >= size()}
-
add
Implements the add method from the
List
interface. This method can be broken using the following collection breaks:Break Description ADD_AT_INDEX_DOES_NOT_ADD_THE_ELEMENT The add
method will not add an element to the collectionADD_AT_INDEX_ADDS_AT_NEXT_POSITION The add
method adds the element at the next position.ADD_AT_INDEX_ADDS_AT_PREVIOUS_POSITION The add
method adds the element at the previous position.ADD_AT_INDEX_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX The add
method throws the wrong exception when the index is out of bounds.A collection that has any of these breaks can be constructed using the builder:
Collection<Integer> collection = Breakables.buildList(1,2,3,4,5) .withBreak(ADD_AT_INDEX_DOES_NOT_ADD_THE_ELEMENT) .build();
- Specified by:
add
in interfaceList<E>
- Parameters:
index
- index at which the specified element is to be insertedelement
- element to be inserted- Throws:
UnsupportedOperationException
- if theadd
operation is not supported by this listClassCastException
- if the class of the specified element prevents it from being added to this listNullPointerException
- if the specified element is null and this list does not permit null elementsIllegalArgumentException
- if some property of the specified element prevents it from being added to this listIndexOutOfBoundsException
- if the index is out of range (index < 0 || index > size()
)
-
remove
Implements the remove method from the
List
interface. This method can be broken using the following collection breaks:Break Description REMOVE_AT_INDEX_DOES_NOT_REMOVE_THE_ELEMENT The remove
method does not remove the element.REMOVE_AT_INDEX_REMOVES_THE_NEXT_ELEMENT The remove
method removes the element from the next position.REMOVE_AT_INDEX_REMOVES_THE_PREVIOUS_ELEMENT The remove
method removes the element from the previous position.REMOVE_AT_INDEX_RETURNS_NULL_ON_BAD_INDEX The remove
method returnsnull
when the index is out of bounds.REMOVE_AT_INDEX_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX The remove
method throws the wrong exception when the index is out of bounds.REMOVE_AT_INDEX_ALWAYS_RETURNS_NULL The remove
method always returnsnull
A collection that has any of these breaks can be constructed using the builder:
Collection<Integer> collection = Breakables.buildList(1,2,3,4,5) .withBreak(REMOVE_AT_INDEX_DOES_NOT_REMOVE_THE_ELEMENT) .build();
- Specified by:
remove
in interfaceList<E>
- Parameters:
index
- the index of the element to be removed- Returns:
- the element previously at the specified position
- Throws:
UnsupportedOperationException
- if theremove
operation is not supported by this listIndexOutOfBoundsException
- if the index is out of range (@code index < 0 || index >= size()
)
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
subList
-