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 ofArcGISSublayer
s. 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:
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
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<ArcGISSublayer>
- Specified by:
contains
in interfaceList<ArcGISSublayer>
-
iterator
public Iterator<ArcGISSublayer> iterator()
- Specified by:
iterator
in interfaceCollection<ArcGISSublayer>
- Specified by:
iterator
in interfaceIterable<ArcGISSublayer>
- Specified by:
iterator
in interfaceList<ArcGISSublayer>
-
toArray
public Object[] 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
public boolean add(ArcGISSublayer e)
- Specified by:
add
in interfaceCollection<ArcGISSublayer>
- Specified by:
add
in interfaceList<ArcGISSublayer>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<ArcGISSublayer>
- Specified by:
remove
in interfaceList<ArcGISSublayer>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<ArcGISSublayer>
- Specified by:
containsAll
in interfaceList<ArcGISSublayer>
-
addAll
public boolean addAll(Collection<? extends ArcGISSublayer> c)
- Specified by:
addAll
in interfaceCollection<ArcGISSublayer>
- Specified by:
addAll
in interfaceList<ArcGISSublayer>
-
addAll
public boolean addAll(int index, Collection<? extends ArcGISSublayer> c)
- Specified by:
addAll
in interfaceList<ArcGISSublayer>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<ArcGISSublayer>
- Specified by:
removeAll
in interfaceList<ArcGISSublayer>
-
retainAll
public boolean retainAll(Collection<?> c)
- 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
public ArcGISSublayer get(int index)
- Specified by:
get
in interfaceList<ArcGISSublayer>
-
set
public ArcGISSublayer set(int index, ArcGISSublayer element)
- Specified by:
set
in interfaceList<ArcGISSublayer>
-
add
public void add(int index, ArcGISSublayer element)
- Specified by:
add
in interfaceList<ArcGISSublayer>
-
remove
public ArcGISSublayer remove(int index)
- Specified by:
remove
in interfaceList<ArcGISSublayer>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interfaceList<ArcGISSublayer>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<ArcGISSublayer>
-
listIterator
public ListIterator<ArcGISSublayer> listIterator()
- Specified by:
listIterator
in interfaceList<ArcGISSublayer>
-
listIterator
public ListIterator<ArcGISSublayer> listIterator(int index)
- Specified by:
listIterator
in interfaceList<ArcGISSublayer>
-
subList
public List<ArcGISSublayer> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceList<ArcGISSublayer>
-
addListChangedListener
public void addListChangedListener(ListChangedListener<ArcGISSublayer> listener)
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
public boolean removeListChangedListener(ListChangedListener<ArcGISSublayer> listener)
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
-
-