private void checkEndPtVertexIntersections(){
  for (Iterator i=segStrings.iterator(); i.hasNext(); ) {
    SegmentString ss=(SegmentString)i.next();
    Coordinate[] pts=ss.getCoordinates();
    checkEndPtVertexIntersections(pts[0],segStrings);
    checkEndPtVertexIntersections(pts[pts.length - 1],segStrings);
  }
}

private void checkEndPtVertexIntersections ( ) { for ( Iterator i = segStrings . iterator ( ) ; i . hasNext ( ) ; ) { SegmentString ss = ( SegmentString ) i . next ( ) ; Coordinate [ ] pts = ss . getCoordinates ( ) ; checkEndPtVertexIntersections ( pts [ 0 ] , segStrings ) ; checkEndPtVertexIntersections ( pts [ pts . length - 1 ] , segStrings ) ; } }
checks for intersections between an endpoint of a segment string and an interior vertex of another segment string
