Package io.github.jwharm.javagi.gio
Interface ListModelJavaList<E extends GObject>
- Type Parameters:
E
- The item type must be a GObject.
- All Superinterfaces:
Collection<E>
,Iterable<E>
,List<E>
,SequencedCollection<E>
- All Known Subinterfaces:
ListModel<T>
,SectionModel<T>
,SelectionModel<T>
- All Known Implementing Classes:
AnyFilter
,BookmarkList
,CompletionContext
,DirectoryList
,EnumListModel
,EveryFilter
,FilterListModel
,FlattenListModel
,FontFamily
,FontFamily.FontFamilyImpl
,FontMap
,FontMap.FontMapImpl
,FontMap.FontMapImpl
,ListIndexModel
,ListModel.ListModelImpl
,ListStore
,MapListModel
,MultiFilter
,MultiFilter.MultiFilterImpl
,MultiSelection
,MultiSorter
,NoSelection
,SectionModel.SectionModelImpl
,SelectionFilterModel
,SelectionModel.SelectionModelImpl
,ShortcutController
,SingleSelection
,SliceListModel
,SortListModel
,StringList
,TreeListModel
,ViewStackPages
This interface is implemented by
ListModel
, so it can be used like a
regular Java List
. The list is immutable, so all mutations such as
add(E)
, set(int, E)
and remove(java.lang.Object)
throw
UnsupportedOperationException
.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Always throwsUnsupportedOperationException
.default boolean
Always throwsUnsupportedOperationException
.default boolean
addAll
(int index, @NotNull Collection<? extends E> c) Always throwsUnsupportedOperationException
.default boolean
addAll
(@NotNull Collection<? extends E> c) Always throwsUnsupportedOperationException
.default void
clear()
Always throwsUnsupportedOperationException
.default boolean
default boolean
containsAll
(@NotNull Collection<?> c) default E
get
(int index) getItem
(int position) int
default int
default boolean
isEmpty()
iterator()
default int
default @NotNull ListIterator
<E> default @NotNull ListIterator
<E> listIterator
(int index) default E
remove
(int index) Always throwsUnsupportedOperationException
.default boolean
Always throwsUnsupportedOperationException
.default boolean
removeAll
(@NotNull Collection<?> c) Always throwsUnsupportedOperationException
.default boolean
retainAll
(@NotNull Collection<?> c) Always throwsUnsupportedOperationException
.default E
Always throwsUnsupportedOperationException
.default int
size()
subList
(int fromIndex, int toIndex) default @NotNull Object @NotNull []
toArray()
default <T> T @NotNull []
toArray
(T @NotNull [] a) 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
-
Method Details
-
getNItems
int getNItems() -
getItem
-
size
default int size()- Specified by:
size
in interfaceCollection<E extends GObject>
- Specified by:
size
in interfaceList<E extends GObject>
- API Note:
- This operation is implemented with
ListModel.getNItems()
-
isEmpty
-
contains
-
iterator
-
toArray
-
toArray
-
add
Always throwsUnsupportedOperationException
. -
remove
Always throwsUnsupportedOperationException
. -
containsAll
- Specified by:
containsAll
in interfaceCollection<E extends GObject>
- Specified by:
containsAll
in interfaceList<E extends GObject>
-
addAll
Always throwsUnsupportedOperationException
. -
addAll
Always throwsUnsupportedOperationException
. -
removeAll
Always throwsUnsupportedOperationException
. -
retainAll
Always throwsUnsupportedOperationException
. -
clear
default void clear()Always throwsUnsupportedOperationException
. -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E extends GObject>
-
listIterator
- Specified by:
listIterator
in interfaceList<E extends GObject>
-
listIterator
- Specified by:
listIterator
in interfaceList<E extends GObject>
-
subList
-