@TypeConverter public static List<Integer> stringToIntList(String data) { if (data == null) { return Collections.emptyList(); } return StringUtil.splitToIntList(data); }
@TypeConverter public static String intListToString(List<Integer> ints) { return StringUtil.joinIntoString(ints); }
@TypeConverter public static String integersListToString(List<Integer> longs) { if (longs == null) return null; return StringUtil.joinIntoString(longs); }
@TypeConverter public static List<Integer> stringToIntegerList(String string) { if (string == null) return Collections.emptyList(); return StringUtil.splitToIntList(string); }