Module com.esri.arcgisruntime
Package com.esri.arcgisruntime.geometry
Class ImmutablePointCollection
- All Implemented Interfaces:
Iterable<Point>,Collection<Point>,List<Point>,SequencedCollection<Point>
Represents an immutable collection of Points that compose an immutable Multipoint geometry.
Use getPoints to return the collection of Points in a Multipoint geometry.
ImmutablePointCollections can also be used as input parameters to initialize contents when constructing
Parts and
PartCollections.
Because geometries themselves are immutable, the collections they are composed of are also immutable. For
geometry editing or creation workflows, a mutable PointCollection is used instead.
- Since:
- 100.0.0
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Method Details
-
getSpatialReference
Gets the SpatialReference of the Points in this collection. TheSpatialReferencedefines how the coordinates of the geometries correspond to locations in the real world. May be null.- Returns:
- the SpatialReference of the Points in this collection
- Since:
- 100.0.0
-
get
Gets a copy of the Point at the given index in the ImmutablePointCollection. Usesize()to determine the maximum possible index.- Specified by:
getin interfaceList<Point>- Specified by:
getin classAbstractList<Point>- Parameters:
index- the index of the Point to get- Returns:
- a copy of the Point at the given index
- Throws:
IndexOutOfBoundsException- if index is out of range (index< 0 ||index>= size())- Since:
- 100.0.0
-
size
public int size()Returns the number of Points in this ImmutablePointCollection. Use this to find the maximum index for callingget(int).- Specified by:
sizein interfaceCollection<Point>- Specified by:
sizein interfaceList<Point>- Specified by:
sizein classAbstractCollection<Point>- Since:
- 100.0.0
- See Also:
-
indexOf
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Point>- Specified by:
isEmptyin interfaceList<Point>- Overrides:
isEmptyin classAbstractCollection<Point>
-