public interface ReadWriteNBTList<T> extends ReadableNBTList<T>
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element)
Adds the specified element at the specified position in this list.
|
boolean |
add(T element)
Adds the specified element to this set if it is not already present.
|
boolean |
addAll(Collection<? extends T> c)
Adds all of the elements in the specified collection to this collection.
|
boolean |
addAll(int index,
Collection<? extends T> c)
Inserts all of the elements in the specified collection into this list,
starting at the specified position.
|
void |
clear()
Clears the contents of the list
|
ListIterator<T> |
listIterator(int startIndex)
Returns a list iterator over the elements in this list (in proper sequence),
starting at the specified position in the list
|
T |
remove(int i)
Remove the element at index i and return it.
|
boolean |
remove(Object o)
Removes the first occurrence of the specified element from this list, if it
is present.
|
boolean |
removeAll(Collection<?> c)
Removes from this collection all of its elements that are contained in the
specified collection
|
boolean |
removeIf(Predicate<? super T> pred)
"Remove all elements from the list that match the given predicate."
|
boolean |
retainAll(Collection<?> c)
Removes all of this collection's elements that are not contained in the
specified collection.
|
T |
set(int index,
T element)
Replaces the element at the specified position in this list with the
specified element.
|
contains, containsAll, get, getType, indexOf, isEmpty, lastIndexOf, size, subList, toArray, toArray, toListCopy
forEach, iterator, spliterator
boolean add(T element)
element
- The element to be added to the list.void add(int index, T element)
index
- The index at which the specified element is to be insertedelement
- The element to be added to the list.T set(int index, T element)
index
- The index of the element to replaceelement
- The element to be stored at the specified positionT remove(int i)
i
- the index of the element to be removedvoid clear()
boolean addAll(Collection<? extends T> c)
c
- The collection to be added to the list.boolean addAll(int index, Collection<? extends T> c)
index
- The index at which the elements of the specified collection are
to be inserted.c
- The collection to be added to the list.boolean removeAll(Collection<?> c)
c
- The collection to be removed from this list.boolean retainAll(Collection<?> c)
c
- The collection to be retained in this listboolean removeIf(Predicate<? super T> pred)
pred
- The predicate to apply to each element to determine if it should
be removed.boolean remove(Object o)
o
- The object to be removed from the list.ListIterator<T> listIterator(int startIndex)
startIndex
- The index of the first element to be returned from the list
iterator (by a call to the next method).Copyright © 2015–2024 tr7zw. All rights reserved.