private void checkSplitEdgesCorrectness(List splitEdges){
  Coordinate[] edgePts=edge.getCoordinates();
  SegmentString split0=(SegmentString)splitEdges.get(0);
  Coordinate pt0=split0.getCoordinate(0);
  if (!pt0.equals2D(edgePts[0]))   throw new RuntimeException("bad split edge start point at " + pt0);
  SegmentString splitn=(SegmentString)splitEdges.get(splitEdges.size() - 1);
  Coordinate[] splitnPts=splitn.getCoordinates();
  Coordinate ptn=splitnPts[splitnPts.length - 1];
  if (!ptn.equals2D(edgePts[edgePts.length - 1]))   throw new RuntimeException("bad split edge end point at " + ptn);
}

private void checkSplitEdgesCorrectness ( List splitEdges ) { Coordinate [ ] edgePts = edge . getCoordinates ( ) ; SegmentString split0 = ( SegmentString ) splitEdges . get ( 0 ) ; Coordinate pt0 = split0 . getCoordinate ( 0 ) ; if ( ! pt0 . equals2D ( edgePts [ 0 ] ) ) throw new RuntimeException ( "bad split edge start point at " + pt0 ) ; SegmentString splitn = ( SegmentString ) splitEdges . get ( splitEdges . size ( ) - 1 ) ; Coordinate [ ] splitnPts = splitn . getCoordinates ( ) ; Coordinate ptn = splitnPts [ splitnPts . length - 1 ] ; if ( ! ptn . equals2D ( edgePts [ edgePts . length - 1 ] ) ) throw new RuntimeException ( "bad split edge end point at " + ptn ) ; }
checks the correctness of the set of split edges corresponding to this edge .
