serval-dna/java/org/servalproject/servaldna/JniResultsList.java
2014-02-12 13:09:17 +10:30

18 lines
370 B
Java

package org.servalproject.servaldna;
import java.util.List;
public class JniResultsList extends AbstractJniResults implements IJniResults {
final List<byte[]> list;
private byte[] empty = new byte[0];
public JniResultsList(List<byte[]> list) {
this.list = list;
}
@Override
public void putBlob(byte[] value) {
list.add(value == null ? empty : value);
}
}