public static EditableArray newArray( Object... values ) {
        BasicArray array = new BasicArray();
        for (Object value : values) {
            array.addValue(value);
        }
        return new ArrayEditor(array, DEFAULT_FACTORY);
    }
public static EditableArray newArray ( Object ... values ) { BasicArray array = new BasicArray ( ) ; for ( Object value : values ) { array . addValue ( value ) ; } return new ArrayEditor ( array , DEFAULT_FACTORY ) ; }
Create a new editable array that can be used as a new array value in other documents.

@param values the initial values for the array
@return the editable array; never null