Package com.esri.arcgisruntime.layers
Class SublayerList
- java.lang.Object
-
- com.esri.arcgisruntime.layers.SublayerList
-
- All Implemented Interfaces:
ListenableList<ArcGISSublayer>,Iterable<ArcGISSublayer>,Collection<ArcGISSublayer>,List<ArcGISSublayer>
public final class SublayerList extends Object implements ListenableList<ArcGISSublayer>
Implements a modifiable list ofArcGISSublayers. Note: Elements within this list type will always be automatically wrapped.- Since:
- 100.0.0
-
-
Method Summary
-
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
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
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
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<ArcGISSublayer>- Specified by:
containsin interfaceList<ArcGISSublayer>
-
iterator
public Iterator<ArcGISSublayer> iterator()
- Specified by:
iteratorin interfaceCollection<ArcGISSublayer>- Specified by:
iteratorin interfaceIterable<ArcGISSublayer>- Specified by:
iteratorin interfaceList<ArcGISSublayer>
-
toArray
public Object[] 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
public boolean add(ArcGISSublayer e)
- Specified by:
addin interfaceCollection<ArcGISSublayer>- Specified by:
addin interfaceList<ArcGISSublayer>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<ArcGISSublayer>- Specified by:
removein interfaceList<ArcGISSublayer>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<ArcGISSublayer>- Specified by:
containsAllin interfaceList<ArcGISSublayer>
-
addAll
public boolean addAll(Collection<? extends ArcGISSublayer> c)
- Specified by:
addAllin interfaceCollection<ArcGISSublayer>- Specified by:
addAllin interfaceList<ArcGISSublayer>
-
addAll
public boolean addAll(int index, Collection<? extends ArcGISSublayer> c)- Specified by:
addAllin interfaceList<ArcGISSublayer>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<ArcGISSublayer>- Specified by:
removeAllin interfaceList<ArcGISSublayer>
-
retainAll
public boolean retainAll(Collection<?> c)
- 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
public ArcGISSublayer get(int index)
- Specified by:
getin interfaceList<ArcGISSublayer>
-
set
public ArcGISSublayer set(int index, ArcGISSublayer element)
- Specified by:
setin interfaceList<ArcGISSublayer>
-
add
public void add(int index, ArcGISSublayer element)- Specified by:
addin interfaceList<ArcGISSublayer>
-
remove
public ArcGISSublayer remove(int index)
- Specified by:
removein interfaceList<ArcGISSublayer>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOfin interfaceList<ArcGISSublayer>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<ArcGISSublayer>
-
listIterator
public ListIterator<ArcGISSublayer> listIterator()
- Specified by:
listIteratorin interfaceList<ArcGISSublayer>
-
listIterator
public ListIterator<ArcGISSublayer> listIterator(int index)
- Specified by:
listIteratorin interfaceList<ArcGISSublayer>
-
subList
public List<ArcGISSublayer> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceList<ArcGISSublayer>
-
addListChangedListener
public void addListChangedListener(ListChangedListener<ArcGISSublayer> listener)
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
public boolean removeListChangedListener(ListChangedListener<ArcGISSublayer> listener)
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
-
-