private void writeInt64( long readInt64, final MapOrListWriterImpl writer, String fieldName, boolean isList) { final BigIntHolder bh = new BigIntHolder(); bh.value = readInt64; if (isList == false) { writer.bigInt(fieldName).write(bh); } else { writer.list.bigInt().write(bh); } }
@Override public void addLong(long value) { holder.value = value; writer.write(holder); }
public static BigIntHolder getBigIntHolder(long value) { BigIntHolder holder = new BigIntHolder(); holder.value = value; return holder; }