Package org.javagi.gio
Interface ListModelJavaListSpliceable<E extends @Nullable GObject>
- All Superinterfaces:
Collection<E>,Iterable<E>,List<E>,ListModelJavaList<E>,ListModelJavaListMutable<E>,SequencedCollection<E>
- All Known Implementing Classes:
ListModelJavaListSpliceable.SubList,StringList
@NullMarked
public interface ListModelJavaListSpliceable<E extends @Nullable GObject>
extends ListModelJavaListMutable<E>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classListModelJavaListSpliceable.SubList<E extends @Nullable GObject,List extends ListModelJavaListSpliceable<E>> -
Method Summary
Modifier and TypeMethodDescriptiondefault voidAlways throwsUnsupportedOperationException.default booleanaddAll(int index, Collection<? extends E> c) default booleanaddAll(Collection<? extends E> c) default voidclear()default EAlways throwsUnsupportedOperationException.voidvoidsplice(int position, int nRemovals, Collection<? extends E> additions) subList(int fromIndex, int toIndex) Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliteratorMethods inherited from interface org.javagi.gio.ListModelJavaList
contains, containsAll, get, getItem, getNItems, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface org.javagi.gio.ListModelJavaListMutable
add, append, remove, removeAt
-
Method Details
-
splice
-
splice
-
clear
default void clear()- Specified by:
clearin interfaceCollection<E extends @Nullable GObject>- Specified by:
clearin interfaceList<E extends @Nullable GObject>- Specified by:
clearin interfaceListModelJavaList<E extends @Nullable GObject>- API Note:
- This implementation delegates to
splice(int, int, E[]).
-
set
Always throwsUnsupportedOperationException.- Specified by:
setin interfaceList<E extends @Nullable GObject>- Specified by:
setin interfaceListModelJavaList<E extends @Nullable GObject>- Specified by:
setin interfaceListModelJavaListMutable<E extends @Nullable GObject>- API Note:
- This implementation delegates to
splice(int, int, Collection).
-
add
Always throwsUnsupportedOperationException.- Specified by:
addin interfaceList<E extends @Nullable GObject>- Specified by:
addin interfaceListModelJavaList<E extends @Nullable GObject>- Specified by:
addin interfaceListModelJavaListMutable<E extends @Nullable GObject>- API Note:
- This implementation delegates to
splice(int, int, Collection).
-
addAll
- Specified by:
addAllin interfaceCollection<E extends @Nullable GObject>- Specified by:
addAllin interfaceList<E extends @Nullable GObject>- Specified by:
addAllin interfaceListModelJavaList<E extends @Nullable GObject>- API Note:
- This implementation delegates to
splice(int, int, Collection).
-
addAll
- Specified by:
addAllin interfaceList<E extends @Nullable GObject>- Specified by:
addAllin interfaceListModelJavaList<E extends @Nullable GObject>- API Note:
- This implementation delegates to
splice(int, int, Collection).
-
subList
-