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 voidadd(int index, Bookmark bookmark)booleanadd(Bookmark bookmark)booleanaddAll(int index, Collection<? extends Bookmark> collection)booleanaddAll(Collection<? extends Bookmark> collection)voidaddListChangedListener(ListChangedListener<Bookmark> listener)Adds a listener for added and removed events.voidclear()booleancontains(Object object)booleancontainsAll(Collection<?> collection)Bookmarkget(int index)intindexOf(Object object)booleanisEmpty()Iterator<Bookmark>iterator()intlastIndexOf(Object object)ListIterator<Bookmark>listIterator()ListIterator<Bookmark>listIterator(int index)Bookmarkremove(int index)booleanremove(Object object)booleanremoveAll(Collection<?> collection)booleanremoveListChangedListener(ListChangedListener<Bookmark> listener)Removes the given listener from this class instance.booleanretainAll(Collection<?> collection)Bookmarkset(int index, Bookmark bookmark)intsize()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:
 containsAllin interfaceCollection<Bookmark>- Specified by:
 containsAllin interfaceList<Bookmark>
 
- 
isEmpty
public boolean isEmpty()
 
- 
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
 lastIndexOfin interfaceList<Bookmark>
 
- 
listIterator
public ListIterator<Bookmark> listIterator()
- Specified by:
 listIteratorin interfaceList<Bookmark>
 
- 
listIterator
public ListIterator<Bookmark> listIterator(int index)
- Specified by:
 listIteratorin 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: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<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:ListenableListRemoves the given listener from this class instance. It will no longer receive added or removed events.- Specified by:
 removeListChangedListenerin interfaceListenableList<Bookmark>- Parameters:
 listener- listener to remove- Returns:
 - true if the listenable list contained the given listener, false otherwise
 
 
 - 
 
 -