Package com.esri.arcgisruntime.mapping
Class BookmarkList
- java.lang.Object
 - 
- com.esri.arcgisruntime.mapping.BookmarkList
 
 
- 
- All Implemented Interfaces:
 ListenableList<Bookmark>,java.lang.Iterable<Bookmark>,java.util.Collection<Bookmark>,java.util.List<Bookmark>
public final class BookmarkList extends java.lang.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, java.util.Collection<? extends Bookmark> collection)booleanaddAll(java.util.Collection<? extends Bookmark> collection)voidaddListChangedListener(ListChangedListener<Bookmark> listener)Adds a listener for added and removed events.voidclear()booleancontains(java.lang.Object object)booleancontainsAll(java.util.Collection<?> collection)Bookmarkget(int index)intindexOf(java.lang.Object object)booleanisEmpty()java.util.Iterator<Bookmark>iterator()intlastIndexOf(java.lang.Object object)java.util.ListIterator<Bookmark>listIterator()java.util.ListIterator<Bookmark>listIterator(int index)Bookmarkremove(int index)booleanremove(java.lang.Object object)booleanremoveAll(java.util.Collection<?> collection)booleanremoveListChangedListener(ListChangedListener<Bookmark> listener)Removes the given listener from this class instance.booleanretainAll(java.util.Collection<?> collection)Bookmarkset(int index, Bookmark bookmark)intsize()java.util.List<Bookmark>subList(int start, int end)java.lang.Object[]toArray()<T> T[]toArray(T[] array) 
 - 
 
- 
- 
Method Detail
- 
add
public void add(int index, Bookmark bookmark)- Specified by:
 addin interfacejava.util.List<Bookmark>
 
- 
add
public boolean add(Bookmark bookmark)
 
- 
addAll
public boolean addAll(int index, java.util.Collection<? extends Bookmark> collection)- Specified by:
 addAllin interfacejava.util.List<Bookmark>
 
- 
addAll
public boolean addAll(java.util.Collection<? extends Bookmark> collection)
 
- 
clear
public void clear()
 
- 
contains
public boolean contains(java.lang.Object object)
 
- 
containsAll
public boolean containsAll(java.util.Collection<?> collection)
 
- 
indexOf
public int indexOf(java.lang.Object object)
- Specified by:
 indexOfin interfacejava.util.List<Bookmark>
 
- 
isEmpty
public boolean isEmpty()
 
- 
iterator
public java.util.Iterator<Bookmark> iterator()
 
- 
lastIndexOf
public int lastIndexOf(java.lang.Object object)
- Specified by:
 lastIndexOfin interfacejava.util.List<Bookmark>
 
- 
listIterator
public java.util.ListIterator<Bookmark> listIterator()
- Specified by:
 listIteratorin interfacejava.util.List<Bookmark>
 
- 
listIterator
public java.util.ListIterator<Bookmark> listIterator(int index)
- Specified by:
 listIteratorin interfacejava.util.List<Bookmark>
 
- 
remove
public Bookmark remove(int index)
- Specified by:
 removein interfacejava.util.List<Bookmark>
 
- 
remove
public boolean remove(java.lang.Object object)
 
- 
removeAll
public boolean removeAll(java.util.Collection<?> collection)
 
- 
retainAll
public boolean retainAll(java.util.Collection<?> collection)
 
- 
set
public Bookmark set(int index, Bookmark bookmark)
- Specified by:
 setin interfacejava.util.List<Bookmark>
 
- 
size
public int size()
 
- 
subList
public java.util.List<Bookmark> subList(int start, int end)
- Specified by:
 subListin interfacejava.util.List<Bookmark>
 
- 
toArray
public java.lang.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
 
 
 - 
 
 -