private boolean isSimplePolygonal(Geometry geom){
  List rings=LinearComponentExtracter.getLines(geom);
  for (Iterator i=rings.iterator(); i.hasNext(); ) {
    LinearRing ring=(LinearRing)i.next();
    if (!isSimpleLinearGeometry(ring))     return false;
  }
  return true;
}

private boolean isSimplePolygonal ( Geometry geom ) { List rings = LinearComponentExtracter . getLines ( geom ) ; for ( Iterator i = rings . iterator ( ) ; i . hasNext ( ) ; ) { LinearRing ring = ( LinearRing ) i . next ( ) ; if ( ! isSimpleLinearGeometry ( ring ) ) return false ; } return true ; }
computes simplicity for polygonal geometries . polygonal geometries are simple if and only if all of their component rings are simple .
