java.lang.Object
com.esri.arcgisruntime.layers.SublayerList
- All Implemented Interfaces:
ListenableList<ArcGISSublayer>
,Iterable<ArcGISSublayer>
,Collection<ArcGISSublayer>
,List<ArcGISSublayer>
,SequencedCollection<ArcGISSublayer>
,Observable
,ObservableList<ArcGISSublayer>
Implements a modifiable list of
ArcGISSublayer
s.- Since:
- 100.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int index, ArcGISSublayer element) boolean
boolean
addAll
(int index, Collection<? extends ArcGISSublayer> c) boolean
addAll
(ArcGISSublayer... elements) boolean
addAll
(Collection<? extends ArcGISSublayer> c) void
Adds a listener for added and removed events.void
addListener
(InvalidationListener listener) void
addListener
(ListChangeListener<? super ArcGISSublayer> listener) void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) void
remove
(int from, int to) boolean
boolean
removeAll
(ArcGISSublayer... elements) boolean
removeAll
(Collection<?> c) boolean
Removes the given listener from this class instance.void
removeListener
(InvalidationListener listener) void
removeListener
(ListChangeListener<? super ArcGISSublayer> listener) boolean
retainAll
(ArcGISSublayer... elements) boolean
retainAll
(Collection<?> c) set
(int index, ArcGISSublayer element) boolean
setAll
(ArcGISSublayer... elements) boolean
setAll
(Collection<? extends ArcGISSublayer> col) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 javafx.collections.ObservableList
filtered, sorted, sorted
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceCollection<ArcGISSublayer>
- Specified by:
size
in interfaceList<ArcGISSublayer>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<ArcGISSublayer>
- Specified by:
isEmpty
in interfaceList<ArcGISSublayer>
-
contains
- Specified by:
contains
in interfaceCollection<ArcGISSublayer>
- Specified by:
contains
in interfaceList<ArcGISSublayer>
-
iterator
- Specified by:
iterator
in interfaceCollection<ArcGISSublayer>
- Specified by:
iterator
in interfaceIterable<ArcGISSublayer>
- Specified by:
iterator
in interfaceList<ArcGISSublayer>
-
toArray
- Specified by:
toArray
in interfaceCollection<ArcGISSublayer>
- Specified by:
toArray
in interfaceList<ArcGISSublayer>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<ArcGISSublayer>
- Specified by:
toArray
in interfaceList<ArcGISSublayer>
-
add
- Specified by:
add
in interfaceCollection<ArcGISSublayer>
- Specified by:
add
in interfaceList<ArcGISSublayer>
-
remove
- Specified by:
remove
in interfaceCollection<ArcGISSublayer>
- Specified by:
remove
in interfaceList<ArcGISSublayer>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<ArcGISSublayer>
- Specified by:
containsAll
in interfaceList<ArcGISSublayer>
-
addAll
- Specified by:
addAll
in interfaceCollection<ArcGISSublayer>
- Specified by:
addAll
in interfaceList<ArcGISSublayer>
-
addAll
- Specified by:
addAll
in interfaceList<ArcGISSublayer>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<ArcGISSublayer>
- Specified by:
removeAll
in interfaceList<ArcGISSublayer>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<ArcGISSublayer>
- Specified by:
retainAll
in interfaceList<ArcGISSublayer>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<ArcGISSublayer>
- Specified by:
clear
in interfaceList<ArcGISSublayer>
-
get
- Specified by:
get
in interfaceList<ArcGISSublayer>
-
set
- Specified by:
set
in interfaceList<ArcGISSublayer>
-
add
- Specified by:
add
in interfaceList<ArcGISSublayer>
-
remove
- Specified by:
remove
in interfaceList<ArcGISSublayer>
-
indexOf
- Specified by:
indexOf
in interfaceList<ArcGISSublayer>
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<ArcGISSublayer>
-
listIterator
- Specified by:
listIterator
in interfaceList<ArcGISSublayer>
-
listIterator
- Specified by:
listIterator
in interfaceList<ArcGISSublayer>
-
subList
- Specified by:
subList
in interfaceList<ArcGISSublayer>
-
addListChangedListener
Description copied from interface:ListenableList
Adds a listener for added and removed events.Adding this listener on the UI thread will cause it to be invoked on the UI thread, otherwise it is not guaranteed on which thread the listener is invoked.
- Specified by:
addListChangedListener
in interfaceListenableList<ArcGISSublayer>
- Parameters:
listener
- this listener will be called back when items are added to or removed from the list
-
removeListChangedListener
Description copied from interface:ListenableList
Removes the given listener from this class instance. It will no longer receive added or removed events.- Specified by:
removeListChangedListener
in interfaceListenableList<ArcGISSublayer>
- Parameters:
listener
- listener to remove- Returns:
- true if the listenable list contained the given listener, false otherwise
-
addListener
- Specified by:
addListener
in interfaceObservableList<ArcGISSublayer>
-
removeListener
- Specified by:
removeListener
in interfaceObservableList<ArcGISSublayer>
-
addAll
- Specified by:
addAll
in interfaceObservableList<ArcGISSublayer>
-
setAll
- Specified by:
setAll
in interfaceObservableList<ArcGISSublayer>
-
setAll
- Specified by:
setAll
in interfaceObservableList<ArcGISSublayer>
-
removeAll
- Specified by:
removeAll
in interfaceObservableList<ArcGISSublayer>
-
retainAll
- Specified by:
retainAll
in interfaceObservableList<ArcGISSublayer>
-
remove
public void remove(int from, int to) - Specified by:
remove
in interfaceObservableList<ArcGISSublayer>
-
addListener
- Specified by:
addListener
in interfaceObservable
-
removeListener
- Specified by:
removeListener
in interfaceObservable
-