public CompoundCurve toCompoundCurveFromOptions(
            MultiPolylineOptions multiPolylineOptions, boolean hasZ,
            boolean hasM) {

        CompoundCurve compoundCurve = new CompoundCurve(hasZ, hasM);

        for (PolylineOptions polyline : multiPolylineOptions
                .getPolylineOptions()) {
            LineString lineString = toLineString(polyline);
            compoundCurve.addLineString(lineString);
        }

        return compoundCurve;
    }
public CompoundCurve toCompoundCurveFromOptions ( MultiPolylineOptions multiPolylineOptions , boolean hasZ , boolean hasM ) { CompoundCurve compoundCurve = new CompoundCurve ( hasZ , hasM ) ; for ( PolylineOptions polyline : multiPolylineOptions . getPolylineOptions ( ) ) { LineString lineString = toLineString ( polyline ) ; compoundCurve . addLineString ( lineString ) ; } return compoundCurve ; }
Convert a {@link MultiPolylineOptions} to a {@link CompoundCurve}

@param multiPolylineOptions multi polyline options
@param hasZ                 has z flag
@param hasM                 has m flag
@return compound curve