Package io.github.ai4ci.util
Class ShallowList<X>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<X>
io.github.ai4ci.util.ShallowList<X>
- Type Parameters:
X
- the list type
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<X>
,Collection<X>
,List<X>
,RandomAccess
Used to prevent immutables deep cloning for lists. A shallow list will always
be copied in situ to a new immutable.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
ShallowList
public ShallowList()
-
-
Method Details
-
combine
-