com.firefly.utils.json.serializer.LongArraySerializer Maven / Gradle / Ivy
package com.firefly.utils.json.serializer;
import java.io.IOException;
import com.firefly.utils.json.JsonWriter;
public class LongArraySerializer extends SimpleArraySerializer {
public LongArraySerializer(boolean primitive) {
super(primitive);
}
@Override
public void convertTo(JsonWriter writer, Object obj) throws IOException {
if(primitive) {
writer.writeLongArray((long[])obj);
} else {
writer.writeLongArray((Long[])obj);
}
}
}