public class CoordinateSharer<T>
extends java.lang.Object
Constructor and Description |
---|
CoordinateSharer(boolean isRuntimeUnion) |
Modifier and Type | Method and Description |
---|---|
void |
addCoordinate(Coordinate coord) |
void |
addCoords(java.util.List<Coordinate> coords) |
void |
finish() |
java.util.List<Coordinate> |
getUnionCoords() |
java.util.List<java.lang.Integer> |
reindex2shared(java.util.List<Coordinate> prev) |
CoordinateND<T> |
reindexCoordND(CoordinateND<T> prev)
If using runtimeUnion, or time2D, you must reindex the CoordinateND
|
void |
showInfo(java.util.Formatter sb) |
public CoordinateSharer(boolean isRuntimeUnion)
isRuntimeUnion
- if true, make union of runtimes, otherwise keep separate runtimes if distinctpublic void addCoordinate(Coordinate coord)
public void addCoords(java.util.List<Coordinate> coords)
public void finish()
public java.util.List<Coordinate> getUnionCoords()
public CoordinateND<T> reindexCoordND(CoordinateND<T> prev)
prev
- previous CoordinateNDpublic java.util.List<java.lang.Integer> reindex2shared(java.util.List<Coordinate> prev)
public void showInfo(java.util.Formatter sb)