Package org.locationtech.jts.jump.geom
Class CoordinateList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList
-
- org.locationtech.jts.jump.geom.CoordinateList
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable
,Collection
,List
,RandomAccess
public class CoordinateList extends ArrayList
A CoordinateList is a list of Coordinates. It prevents duplicate consecutive coordinates from appearing in the list.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description CoordinateList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Object obj)
void
add(org.locationtech.jts.geom.Coordinate coord)
boolean
addAll(Collection coll)
void
closeRing()
Ensure this coordList is a ring, by adding the start point if necessaryorg.locationtech.jts.geom.Coordinate
getCoordinate(int i)
org.locationtech.jts.geom.Coordinate[]
toCoordinateArray()
-
Methods inherited from class java.util.ArrayList
add, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
getCoordinate
public org.locationtech.jts.geom.Coordinate getCoordinate(int i)
-
add
public boolean add(Object obj)
-
add
public void add(org.locationtech.jts.geom.Coordinate coord)
-
addAll
public boolean addAll(Collection coll)
-
closeRing
public void closeRing()
Ensure this coordList is a ring, by adding the start point if necessary
-
toCoordinateArray
public org.locationtech.jts.geom.Coordinate[] toCoordinateArray()
-
-