blob: bfce619dffc56ef5cc7db1abc25c96f84292d318 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
using Mammoth.Couscous.java.lang;
using Mammoth.Couscous.java.util;
using Mammoth.Couscous.java.nio.file;
using System;
namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.util
{
internal static class Sets {
internal static Set<T> set<T>(T[] values) {
return new HashSet<T>(new System.Collections.Generic.HashSet<T>(values));
}
internal static Set<T> toSet<T>(Iterable<T> iterable) {
return new HashSet<T>(new System.Collections.Generic.HashSet<T>(FromJava.IterableToEnumerable(iterable)));
}
}
}
|