Class BoundaryList2S
- java.lang.Object
-
- org.apache.commons.geometry.core.partitioning.BoundaryList<Point2S,GreatArc>
-
- org.apache.commons.geometry.spherical.twod.BoundaryList2S
-
- All Implemented Interfaces:
BoundarySource<GreatArc>
,BoundarySource2S
public class BoundaryList2S extends BoundaryList<Point2S,GreatArc> implements BoundarySource2S
BoundarySource2S
implementation that uses boundaries stored in a list. Lists given during construction are used directly; no copies are made. Thread safety and immutability therefore depend on the underlying list and its usage outside of this class. The boundary list cannot be modified through this class.
-
-
Constructor Summary
Constructors Constructor Description BoundaryList2S(java.util.List<? extends GreatArc> boundaries)
Construct a new instance with the given list of boundaries.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundaryList2S
toList()
Return this instance.-
Methods inherited from class org.apache.commons.geometry.core.partitioning.BoundaryList
boundaryStream, count, getBoundaries, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.commons.geometry.core.partitioning.BoundarySource
boundaryStream
-
Methods inherited from interface org.apache.commons.geometry.spherical.twod.BoundarySource2S
toTree
-
-
-
-
Constructor Detail
-
BoundaryList2S
public BoundaryList2S(java.util.List<? extends GreatArc> boundaries)
Construct a new instance with the given list of boundaries. The argument is used directly; no copy is made.- Parameters:
boundaries
- list of boundaries for the instance
-
-
Method Detail
-
toList
public BoundaryList2S toList()
Return this instance.- Specified by:
toList
in interfaceBoundarySource2S
- Returns:
- this instance
-
-