Keep message bodies

This commit is contained in:
M66B
2019-03-18 10:51:47 +00:00
parent 534df441da
commit aad2f18505
2 changed files with 27 additions and 4 deletions

View File

@@ -88,6 +88,7 @@ import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ThreadFactory;
import javax.mail.Address;
@@ -1002,6 +1003,14 @@ public class Helper {
return result;
}
static long[] toLongArray(Set<Long> set) {
long[] result = new long[set.size()];
int i = 0;
for (Long value : set)
result[i++] = value;
return result;
}
static List<Long> fromLongArray(long[] array) {
List<Long> result = new ArrayList<>();
for (int i = 0; i < array.length; i++)