class LayerUtil {

    @VisibleForTesting
    @NonNull
    protected Float[] getFloatArray(JSONArray jsonArray) throws JSONException {
        Float[] lineDashArrayValue = new Float[jsonArray.length()];

        for (int i = 0; i < jsonArray.length(); i++) {
            lineDashArrayValue[i] = Double.valueOf(jsonArray.getDouble(i)).floatValue();
        }

        return lineDashArrayValue;
    }

}