public static BoxFolder createFromIdAndName ( String folderId , String name ) { JsonObject object = new JsonObject ( ) ; object . add ( BoxItem . FIELD_ID , folderId ) ; object . add ( BoxItem . FIELD_TYPE , BoxFolder . TYPE ) ; if ( ! TextUtils . isEmpty ( name ) ) { object . add ( BoxItem . FIELD_NAME , name ) ; } return new BoxFolder ( object ) ; }
A convenience method to create an empty folder with just the id and type fields set . This allows the ability to interact with the content sdk in a more descriptive and type safe manner