reverse method
Creates a {@link GeometryCollection} with every component reversed. The order of the components in the collection are not reversed.
@return a {@link GeometryCollection} in the reverse order
Implementation
Geometry reverse() {
int n = geometries.length;
List<Geometry> revGeoms = []; //..length = n;
for (int i = 0; i < n; i++) {
revGeoms.add(geometries[i].reverse());
// revGeoms[i] = geometries[i].reverse();
}
return getFactory().createGeometryCollection(revGeoms);
}