hasNonEmptyElements static method

bool hasNonEmptyElements(
  1. List<Geometry> geometries
)

Returns true if the array contains any non-empty Geometrys.

@param geometries an array of Geometrys; no elements may be null @return true if any of the Geometrys isEmpty methods return false

Implementation

static bool hasNonEmptyElements(List<Geometry> geometries) {
  for (int i = 0; i < geometries.length; i++) {
    if (!geometries[i].isEmpty()) {
      return true;
    }
  }
  return false;
}