Class ArrayListView<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
de.xima.fc.common.collection.ArrayListView<T>
- Type Parameters:
T- the type of elements in the list
- All Implemented Interfaces:
Serializable, Iterable<T>, Collection<T>, List<T>
An unmodifiable view of an array as a list.
- Since:
- 8.5.0
- See Also:
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
ArrayListView
Constructs a new list view of the specified array.- Parameters:
array- The array to be viewed as a list. null is treated as an empty array.
-
-
Method Details
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-