From 94f8e108131337304f89ceec430dc33a2f3d1fe4 Mon Sep 17 00:00:00 2001 From: Karl Wright Date: Mon, 4 Apr 2016 14:41:42 -0400 Subject: [PATCH] LUCENE-7157: More javadoc fixes --- .../spatial3d/geom/GeoPolygonFactory.java | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoPolygonFactory.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoPolygonFactory.java index d2d71b358e2..847f1708071 100755 --- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoPolygonFactory.java +++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoPolygonFactory.java @@ -675,11 +675,21 @@ public class GeoPolygonFactory { /** Class representing a single (unused) edge. */ protected static class Edge { + /** Plane */ public final SidedPlane plane; + /** Start point */ public final GeoPoint startPoint; + /** End point */ public final GeoPoint endPoint; + /** Internal edge flag */ public final boolean isInternal; - + + /** Constructor. + * @param startPoint the edge start point + * @param endPoint the edge end point + * @param plane the edge plane + * @param isInternal true if internal edge + */ public Edge(final GeoPoint startPoint, final GeoPoint endPoint, final SidedPlane plane, final boolean isInternal) { this.startPoint = startPoint; this.endPoint = endPoint; @@ -701,10 +711,16 @@ public class GeoPolygonFactory { /** Class representing an iterator over an EdgeBuffer. */ protected static class EdgeBufferIterator implements Iterator { + /** Edge buffer */ protected final EdgeBuffer edgeBuffer; + /** First edge */ protected final Edge firstEdge; + /** Current edge */ protected Edge currentEdge; + /** Constructor. + * @param edgeBuffer the edge buffer + */ public EdgeBufferIterator(final EdgeBuffer edgeBuffer) { this.edgeBuffer = edgeBuffer; this.currentEdge = edgeBuffer.pickOne(); @@ -737,9 +753,13 @@ public class GeoPolygonFactory { /** Class representing a pool of unused edges, all linked together by vertices. */ protected static class EdgeBuffer { + /** Starting edge */ protected Edge oneEdge; + /** Full set of edges */ protected final Set edges = new HashSet<>(); + /** Map to previous edge */ protected final Map previousEdges = new HashMap<>(); + /** Map to next edge */ protected final Map nextEdges = new HashMap<>(); /** Constructor.