public static void putEnumList(Writer writer, List<? extends Enum<?>> values)
			throws IOException {

		if (values == null) {
			writer.write("null");
		} else {
			startArray(writer);
			for (int i = 0; i < values.size(); i++) {
				put(writer, values.get(i));
				if (i != values.size() - 1) {
					addSeparator(writer);
				}
			}
			endArray(writer);
		}
	}
public static void putEnumList ( Writer writer , List < ? extends Enum < ? > > values ) throws IOException { if ( values == null ) { writer . write ( "null" ) ; } else { startArray ( writer ) ; for ( int i = 0 ; i < values . size ( ) ; i ++ ) { put ( writer , values . get ( i ) ) ; if ( i != values . size ( ) - 1 ) { addSeparator ( writer ) ; } } endArray ( writer ) ; } }
Writes the given value with the given writer.
@param writer
@param values
@throws IOException
@author vvakame