Package com.esri.arcgisruntime.mapping
Class BookmarkList
- java.lang.Object
-
- com.esri.arcgisruntime.mapping.BookmarkList
-
- All Implemented Interfaces:
ListenableList<Bookmark>
,Iterable<Bookmark>
,Collection<Bookmark>
,List<Bookmark>
public final class BookmarkList extends Object implements ListenableList<Bookmark>
Represents the bookmarks of an ArcGISMap.This class is not creatable but bookmarks can be added and removed. Changes to the list can be observed by adding a ListChangedListener.
- Since:
- 100.0.0
- See Also:
ListenableList
,ListChangedListener
,Bookmark
,GeoModel.getBookmarks()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, Bookmark bookmark)
boolean
add(Bookmark bookmark)
boolean
addAll(int index, Collection<? extends Bookmark> collection)
boolean
addAll(Collection<? extends Bookmark> collection)
void
addListChangedListener(ListChangedListener<Bookmark> listener)
Adds a listener for added and removed events.void
clear()
boolean
contains(Object object)
boolean
containsAll(Collection<?> collection)
Bookmark
get(int index)
int
indexOf(Object object)
boolean
isEmpty()
Iterator<Bookmark>
iterator()
int
lastIndexOf(Object object)
ListIterator<Bookmark>
listIterator()
ListIterator<Bookmark>
listIterator(int index)
Bookmark
remove(int index)
boolean
remove(Object object)
boolean
removeAll(Collection<?> collection)
boolean
removeListChangedListener(ListChangedListener<Bookmark> listener)
Removes the given listener from this class instance.boolean
retainAll(Collection<?> collection)
Bookmark
set(int index, Bookmark bookmark)
int
size()
List<Bookmark>
subList(int start, int end)
Object[]
toArray()
<T> T[]
toArray(T[] array)
-
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
-
add
public boolean add(Bookmark bookmark)
-
addAll
public boolean addAll(int index, Collection<? extends Bookmark> collection)
-
addAll
public boolean addAll(Collection<? extends Bookmark> collection)
-
clear
public void clear()
-
contains
public boolean contains(Object object)
-
containsAll
public boolean containsAll(Collection<?> collection)
- Specified by:
containsAll
in interfaceCollection<Bookmark>
- Specified by:
containsAll
in interfaceList<Bookmark>
-
isEmpty
public boolean isEmpty()
-
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
lastIndexOf
in interfaceList<Bookmark>
-
listIterator
public ListIterator<Bookmark> listIterator()
- Specified by:
listIterator
in interfaceList<Bookmark>
-
listIterator
public ListIterator<Bookmark> listIterator(int index)
- Specified by:
listIterator
in interfaceList<Bookmark>
-
remove
public boolean remove(Object object)
-
removeAll
public boolean removeAll(Collection<?> collection)
-
retainAll
public boolean retainAll(Collection<?> collection)
-
size
public int size()
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] array)
-
addListChangedListener
public void addListChangedListener(ListChangedListener<Bookmark> 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<Bookmark>
- Parameters:
listener
- this listener will be called back when items are added to or removed from the list
-
removeListChangedListener
public boolean removeListChangedListener(ListChangedListener<Bookmark> 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<Bookmark>
- Parameters:
listener
- listener to remove- Returns:
- true if the listenable list contained the given listener, false otherwise
-
-