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
ArcGISSublayers.- Since:
- 100.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, ArcGISSublayer element) booleanbooleanaddAll(int index, Collection<? extends ArcGISSublayer> c) booleanaddAll(ArcGISSublayer... elements) booleanaddAll(Collection<? extends ArcGISSublayer> c) voidAdds a listener for added and removed events.voidaddListener(InvalidationListener listener) voidaddListener(ListChangeListener<? super ArcGISSublayer> listener) voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) voidremove(int from, int to) booleanbooleanremoveAll(ArcGISSublayer... elements) booleanremoveAll(Collection<?> c) booleanRemoves the given listener from this class instance.voidremoveListener(InvalidationListener listener) voidremoveListener(ListChangeListener<? super ArcGISSublayer> listener) booleanretainAll(ArcGISSublayer... elements) booleanretainAll(Collection<?> c) set(int index, ArcGISSublayer element) booleansetAll(ArcGISSublayer... elements) booleansetAll(Collection<? extends ArcGISSublayer> col) intsize()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, waitMethods 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 javafx.collections.ObservableList
filtered, sorted, sorted
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<ArcGISSublayer>- Specified by:
sizein interfaceList<ArcGISSublayer>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<ArcGISSublayer>- Specified by:
isEmptyin interfaceList<ArcGISSublayer>
-
contains
- Specified by:
containsin interfaceCollection<ArcGISSublayer>- Specified by:
containsin interfaceList<ArcGISSublayer>
-
iterator
- Specified by:
iteratorin interfaceCollection<ArcGISSublayer>- Specified by:
iteratorin interfaceIterable<ArcGISSublayer>- Specified by:
iteratorin interfaceList<ArcGISSublayer>
-
toArray
- Specified by:
toArrayin interfaceCollection<ArcGISSublayer>- Specified by:
toArrayin interfaceList<ArcGISSublayer>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<ArcGISSublayer>- Specified by:
toArrayin interfaceList<ArcGISSublayer>
-
add
- Specified by:
addin interfaceCollection<ArcGISSublayer>- Specified by:
addin interfaceList<ArcGISSublayer>
-
remove
- Specified by:
removein interfaceCollection<ArcGISSublayer>- Specified by:
removein interfaceList<ArcGISSublayer>
-
containsAll
- Specified by:
containsAllin interfaceCollection<ArcGISSublayer>- Specified by:
containsAllin interfaceList<ArcGISSublayer>
-
addAll
- Specified by:
addAllin interfaceCollection<ArcGISSublayer>- Specified by:
addAllin interfaceList<ArcGISSublayer>
-
addAll
- Specified by:
addAllin interfaceList<ArcGISSublayer>
-
removeAll
- Specified by:
removeAllin interfaceCollection<ArcGISSublayer>- Specified by:
removeAllin interfaceList<ArcGISSublayer>
-
retainAll
- Specified by:
retainAllin interfaceCollection<ArcGISSublayer>- Specified by:
retainAllin interfaceList<ArcGISSublayer>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<ArcGISSublayer>- Specified by:
clearin interfaceList<ArcGISSublayer>
-
get
- Specified by:
getin interfaceList<ArcGISSublayer>
-
set
- Specified by:
setin interfaceList<ArcGISSublayer>
-
add
- Specified by:
addin interfaceList<ArcGISSublayer>
-
remove
- Specified by:
removein interfaceList<ArcGISSublayer>
-
indexOf
- Specified by:
indexOfin interfaceList<ArcGISSublayer>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<ArcGISSublayer>
-
listIterator
- Specified by:
listIteratorin interfaceList<ArcGISSublayer>
-
listIterator
- Specified by:
listIteratorin interfaceList<ArcGISSublayer>
-
subList
- Specified by:
subListin interfaceList<ArcGISSublayer>
-
addListChangedListener
Description copied from interface:ListenableListAdds 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:
addListChangedListenerin 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:ListenableListRemoves the given listener from this class instance. It will no longer receive added or removed events.- Specified by:
removeListChangedListenerin interfaceListenableList<ArcGISSublayer>- Parameters:
listener- listener to remove- Returns:
- true if the listenable list contained the given listener, false otherwise
-
addListener
- Specified by:
addListenerin interfaceObservableList<ArcGISSublayer>
-
removeListener
- Specified by:
removeListenerin interfaceObservableList<ArcGISSublayer>
-
addAll
- Specified by:
addAllin interfaceObservableList<ArcGISSublayer>
-
setAll
- Specified by:
setAllin interfaceObservableList<ArcGISSublayer>
-
setAll
- Specified by:
setAllin interfaceObservableList<ArcGISSublayer>
-
removeAll
- Specified by:
removeAllin interfaceObservableList<ArcGISSublayer>
-
retainAll
- Specified by:
retainAllin interfaceObservableList<ArcGISSublayer>
-
remove
public void remove(int from, int to) - Specified by:
removein interfaceObservableList<ArcGISSublayer>
-
addListener
- Specified by:
addListenerin interfaceObservable
-
removeListener
- Specified by:
removeListenerin interfaceObservable
-