Package net.minecraftforge.common.util
Class ConcatenatedListView<T>
java.lang.Object
net.minecraftforge.common.util.ConcatenatedListView<T>
- All Implemented Interfaces:
- Iterable<T>,- Collection<T>,- List<T>
A list that concatenates multiple other lists for efficient iteration.
 You may use this in place of creating a new list and calling 
List.addAll(Collection)
 for each of your collections.
 This list does not support modification operations, but the underlying lists may be mutated safely externally.- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateConcatenatedListView(List<? extends List<? extends T>> lists) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, @NotNull Collection<? extends T> c) booleanaddAll(@NotNull Collection<? extends T> c) voidclear()private <C extends Collection<T>>
 Cconcatenate(Supplier<C> collectionFactory) booleanbooleancontainsAll(@NotNull Collection<?> c) get(int index) intbooleanisEmpty()iterator()int@NotNull ListIterator<T>@NotNull ListIterator<T>listIterator(int index) static <T> List<T>static <T> ConcatenatedListView<T>remove(int index) booleanbooleanremoveAll(@NotNull Collection<?> c) booleanretainAll(@NotNull Collection<?> c) intsize()subList(int fromIndex, int toIndex) @NotNull Object[]toArray()<T1> @NotNull T1[]toArray(@NotNull T1[] a) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Listequals, hashCode, replaceAll, sort
- 
Field Details- 
lists
 
- 
- 
Constructor Details- 
ConcatenatedListView
 
- 
- 
Method Details- 
of
- 
of
- 
sizepublic int size()
- 
isEmptypublic boolean isEmpty()
- 
contains
- 
get
- 
indexOf
- 
lastIndexOf- Specified by:
- lastIndexOfin interface- List<T>
 
- 
iterator
- 
spliterator- Specified by:
- spliteratorin interface- Collection<T>
- Specified by:
- spliteratorin interface- Iterable<T>
- Specified by:
- spliteratorin interface- List<T>
 
- 
concatenate
- 
toArray
- 
toArray@NotNull public <T1> @NotNull T1[] toArray(@NotNull @NotNull T1[] a) 
- 
containsAll- Specified by:
- containsAllin interface- Collection<T>
- Specified by:
- containsAllin interface- List<T>
 
- 
add
- 
add
- 
set
- 
addAll
- 
addAll
- 
remove
- 
remove
- 
removeAll
- 
retainAll
- 
clearpublic void clear()
- 
listIterator- Specified by:
- listIteratorin interface- List<T>
 
- 
listIterator- Specified by:
- listIteratorin interface- List<T>
 
- 
subList
 
-