Package jmri.util
Class NonNullArrayList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<E>
-
- jmri.util.NonNullArrayList<E>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<E>
,java.util.RandomAccess
public class NonNullArrayList<E> extends java.util.ArrayList<E>
An ArrayList that SpotBugs understands will never contain null elements.- See Also:
ArrayList
,List
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NonNullArrayList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int i, E e)
boolean
add(E e)
boolean
addAll(int i, java.util.Collection<? extends E> c)
boolean
addAll(java.util.Collection<? extends E> c)
protected boolean
asArgumentCheck(NonNullArrayList<java.lang.Integer> t)
E
get(int i)
E
remove(int i)
E
set(int i, E e)
protected NonNullArrayList<java.lang.Integer>
testAddAndReturn()
protected boolean
testLoop(java.lang.String c)
-
Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, equals, forEach, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Constructor Detail
-
NonNullArrayList
public NonNullArrayList()
-
-
Method Detail
-
testAddAndReturn
protected NonNullArrayList<java.lang.Integer> testAddAndReturn()
-
testLoop
protected boolean testLoop(java.lang.String c)
-
asArgumentCheck
protected boolean asArgumentCheck(NonNullArrayList<java.lang.Integer> t)
-
-