mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 13:17:56 +00:00
18 lines
361 B
Java
18 lines
361 B
Java
|
package org.servalproject.servald;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
public class JniResultsList extends AbstractJniResults implements IJniResults {
|
||
|
final List<byte[]> list;
|
||
|
private byte[] empty = new byte[0];
|
||
|
JniResultsList(List<byte[]> list) {
|
||
|
this.list = list;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void putBlob(byte[] value) {
|
||
|
list.add(value == null ? empty : value);
|
||
|
}
|
||
|
|
||
|
}
|