protected boolean isAllTestComponentsInTargetInterior(Geometry testGeom){
  List coords=ComponentCoordinateExtracter.getCoordinates(testGeom);
  for (Iterator i=coords.iterator(); i.hasNext(); ) {
    Coordinate p=(Coordinate)i.next();
    int loc=targetPointLocator.locate(p);
    if (loc != Location.INTERIOR)     return false;
  }
  return true;
}

protected boolean isAllTestComponentsInTargetInterior ( Geometry testGeom ) { List coords = ComponentCoordinateExtracter . getCoordinates ( testGeom ) ; for ( Iterator i = coords . iterator ( ) ; i . hasNext ( ) ; ) { Coordinate p = ( Coordinate ) i . next ( ) ; int loc = targetPointLocator . locate ( p ) ; if ( loc != Location . INTERIOR ) return false ; } return true ; }
tests whether all components of the test geometry are contained in the interior of the target geometry . handles both linear and point components .
