类 ConcatenatedListView<T>
java.lang.Object
net.minecraftforge.common.util.ConcatenatedListView<T>
- 所有已实现的接口:
Iterable<T>
,Collection<T>
,List<T>
,SequencedCollection<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.-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
boolean
boolean
addAll
(int index, @NotNull Collection<? extends T> c) boolean
addAll
(@NotNull Collection<? extends T> c) void
clear()
private <C extends Collection<T>>
Cconcatenate
(Supplier<C> collectionFactory) boolean
boolean
containsAll
(@NotNull Collection<?> c) get
(int index) int
boolean
isEmpty()
iterator()
int
@NotNull ListIterator
<T> @NotNull ListIterator
<T> listIterator
(int index) static <T> List
<T> static <T> ConcatenatedListView
<T> remove
(int index) boolean
boolean
removeAll
(@NotNull Collection<?> c) boolean
retainAll
(@NotNull Collection<?> c) int
size()
subList
(int fromIndex, int toIndex) @NotNull Object[]
toArray()
<T1> T1[]
toArray
(T1[] a) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 java.util.Collection
parallelStream, removeIf, stream, toArray
从接口继承的方法 java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort
-
字段详细资料
-
lists
-
-
构造器详细资料
-
ConcatenatedListView
-
-
方法详细资料
-
of
-
of
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
get
-
indexOf
-
lastIndexOf
- 指定者:
lastIndexOf
在接口中List<T>
-
iterator
-
spliterator
- 指定者:
spliterator
在接口中Collection<T>
- 指定者:
spliterator
在接口中Iterable<T>
- 指定者:
spliterator
在接口中List<T>
-
concatenate
-
toArray
-
toArray
@NotNull public <T1> T1[] toArray(@NotNull T1[] a) -
containsAll
- 指定者:
containsAll
在接口中Collection<T>
- 指定者:
containsAll
在接口中List<T>
-
add
-
add
-
set
-
addAll
-
addAll
-
remove
-
remove
-
removeAll
-
retainAll
-
clear
public void clear() -
listIterator
- 指定者:
listIterator
在接口中List<T>
-
listIterator
- 指定者:
listIterator
在接口中List<T>
-
subList
-