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 void
add(int index, Bookmark bookmark)
boolean
add(Bookmark bookmark)
boolean
addAll(int index, java.util.Collection<? extends Bookmark> collection)
boolean
addAll(java.util.Collection<? extends Bookmark> collection)
void
addListChangedListener(ListChangedListener<Bookmark> listener)
Adds a listener for added and removed events.void
clear()
boolean
contains(java.lang.Object object)
boolean
containsAll(java.util.Collection<?> collection)
Bookmark
get(int index)
int
indexOf(java.lang.Object object)
boolean
isEmpty()
java.util.Iterator<Bookmark>
iterator()
int
lastIndexOf(java.lang.Object object)
java.util.ListIterator<Bookmark>
listIterator()
java.util.ListIterator<Bookmark>
listIterator(int index)
Bookmark
remove(int index)
boolean
remove(java.lang.Object object)
boolean
removeAll(java.util.Collection<?> collection)
boolean
removeListChangedListener(ListChangedListener<Bookmark> listener)
Removes the given listener from this class instance.boolean
retainAll(java.util.Collection<?> collection)
Bookmark
set(int index, Bookmark bookmark)
int
size()
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:
add
in interfacejava.util.List<Bookmark>
-
add
public boolean add(Bookmark bookmark)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends Bookmark> collection)
- Specified by:
addAll
in 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:
indexOf
in 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:
lastIndexOf
in interfacejava.util.List<Bookmark>
-
listIterator
public java.util.ListIterator<Bookmark> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<Bookmark>
-
listIterator
public java.util.ListIterator<Bookmark> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<Bookmark>
-
remove
public Bookmark remove(int index)
- Specified by:
remove
in 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:
set
in interfacejava.util.List<Bookmark>
-
size
public int size()
-
subList
public java.util.List<Bookmark> subList(int start, int end)
- Specified by:
subList
in 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: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
-
-