All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.utils.json.serializer.BooleanArraySerializer Maven / Gradle / Ivy

There is a newer version: 4.0.3.2
Show newest version
package com.firefly.utils.json.serializer;

import java.io.IOException;

import com.firefly.utils.json.JsonWriter;

public class BooleanArraySerializer extends SimpleArraySerializer {

	public BooleanArraySerializer(boolean primitive) {
		super(primitive);
	}

	@Override
	public void convertTo(JsonWriter writer, Object obj)
			throws IOException {
		if(primitive) {
			writer.writeBooleanArray((boolean[])obj);
		} else {
			writer.writeBooleanArray((Boolean[])obj);
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy