P - Point implementation typeS - Hyperplane convex subset implementation typepublic class BoundaryList<P extends Point<P>,S extends HyperplaneConvexSubset<P>> extends Object implements BoundarySource<S>
BoundarySource containing 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 and Description |
|---|
BoundaryList(List<? extends S> boundaries)
Construct a new instance containing the given boundaries.
|
| Modifier and Type | Method and Description |
|---|---|
Stream<S> |
boundaryStream()
Return a stream containing the boundaries for this instance.
|
int |
count()
Get the number of boundaries in the instance.
|
List<S> |
getBoundaries()
Get the boundaries for the instance.
|
String |
toString() |
public List<S> getBoundaries()
public int count()
boundaryList.getBoundaries().size() but the
word "size" is avoided here to prevent confusion with geometric
size.public Stream<S> boundaryStream()
boundaryStream in interface BoundarySource<S extends HyperplaneConvexSubset<P>>Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.