blob: 7843537af6869ade28faa6dc6e6f64662b656ab2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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)));
}
}
}
|