code: public void setArrayMode( int arrayMode ) {
        if( arrayMode == MODE_OBJECT_ARRAY ) {
           this.arrayMode = arrayMode;
        } else if( arrayMode == MODE_SET ) {
           this.arrayMode = arrayMode;
           this.collectionType = Set.class;
        } else {
           this.arrayMode = MODE_LIST;
           this.enclosedType = DEFAULT_COLLECTION_TYPE;
        }
     }
docs: Sets the current array mode for conversion.<br>
  If the value is not MODE_LIST, MODE_OBJECT_ARRAY nor MODE_SET, then MODE_LIST will be used.<br>
  [JSON -&gt; Java]
  
  @param arrayMode array mode for conversion