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