@NonNull @Override public ContentValue<byte[]> convert(@NonNull Inquiry inquiry, @Nullable boolean[] value) throws IOException { if (value == null) return ContentValue.valueOf((byte[]) null); byte[] blob = new byte[value.length]; for (int i = 0; i < value.length; i++) { blob[i] = (byte) (value[i] ? 1 : 0); } return ContentValue.valueOf(blob); }
@NonNull @Override public ContentValue<byte[]> convert(@NonNull Inquiry inquiry, @Nullable Serializable value) throws IOException { return ContentValue.valueOf(value == null ? null : serializeObject(value)); }