You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by kw...@apache.org on 2016/04/04 20:58:28 UTC
[3/4] lucene-solr:master: LUCENE-7157: More javadoc fixes
LUCENE-7157: More javadoc fixes
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/94f8e108
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/94f8e108
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/94f8e108
Branch: refs/heads/master
Commit: 94f8e108131337304f89ceec430dc33a2f3d1fe4
Parents: d900588
Author: Karl Wright <Da...@gmail.com>
Authored: Mon Apr 4 14:41:42 2016 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Mon Apr 4 14:41:42 2016 -0400
----------------------------------------------------------------------
.../spatial3d/geom/GeoPolygonFactory.java | 22 +++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/94f8e108/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoPolygonFactory.java
----------------------------------------------------------------------
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 d2d71b3..847f170 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> {
+ /** 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<Edge> edges = new HashSet<>();
+ /** Map to previous edge */
protected final Map<Edge, Edge> previousEdges = new HashMap<>();
+ /** Map to next edge */
protected final Map<Edge, Edge> nextEdges = new HashMap<>();
/** Constructor.