public interface IListBacked<T> extends List<T>
Structural interface with only list methods can extend this interface and provide default
implementations of its methods and implement a compile-time proxy API to avoid the overhead runtime proxy
generation.
See the JsonStructureType.| Modifier and Type | Method and Description |
|---|---|
default void |
add(int index,
T element) |
default boolean |
add(T t) |
default boolean |
addAll(Collection<? extends T> c) |
default boolean |
addAll(int index,
Collection<? extends T> c) |
default void |
clear() |
default boolean |
contains(Object o) |
default boolean |
containsAll(Collection<?> c) |
default void |
forEach(java.util.function.Consumer<? super T> action) |
default T |
get(int index) |
List<T> |
getList()
The
List object used to store values corresponding with List methods. |
default int |
indexOf(Object o) |
default boolean |
isEmpty() |
default Iterator<T> |
iterator() |
default int |
lastIndexOf(Object o) |
default ListIterator<T> |
listIterator() |
default ListIterator<T> |
listIterator(int index) |
default java.util.stream.Stream<T> |
parallelStream() |
default T |
remove(int index) |
default boolean |
remove(Object o) |
default boolean |
removeAll(Collection<?> c) |
default boolean |
removeIf(java.util.function.Predicate<? super T> filter) |
default void |
replaceAll(java.util.function.UnaryOperator<T> operator) |
default boolean |
retainAll(Collection<?> c) |
default T |
set(int index,
T element) |
default int |
size() |
default void |
sort(Comparator<? super T> c) |
default Spliterator<T> |
spliterator() |
default java.util.stream.Stream<T> |
stream() |
default List<T> |
subList(int fromIndex,
int toIndex) |
default Object[] |
toArray() |
default <T1> T1[] |
toArray(T1[] a) |
default void replaceAll(java.util.function.UnaryOperator<T> operator)
replaceAll in interface List<T>default void sort(Comparator<? super T> c)
default Spliterator<T> spliterator()
spliterator in interface Collection<T>spliterator in interface Iterable<T>spliterator in interface List<T>default boolean removeIf(java.util.function.Predicate<? super T> filter)
removeIf in interface Collection<T>default java.util.stream.Stream<T> stream()
stream in interface Collection<T>default java.util.stream.Stream<T> parallelStream()
parallelStream in interface Collection<T>default void forEach(java.util.function.Consumer<? super T> action)
default int size()
default boolean isEmpty()
default boolean contains(Object o)
default Object[] toArray()
default <T1> T1[] toArray(T1[] a)
default boolean add(T t)
default boolean remove(Object o)
default boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface List<T>default boolean addAll(Collection<? extends T> c)
default boolean addAll(int index,
Collection<? extends T> c)
default boolean removeAll(Collection<?> c)
default boolean retainAll(Collection<?> c)
default void clear()
default int lastIndexOf(Object o)
lastIndexOf in interface List<T>default ListIterator<T> listIterator()
listIterator in interface List<T>default ListIterator<T> listIterator(int index)
listIterator in interface List<T>Copyright © 2019. All rights reserved.