From 0f9ef005f063198ea2e16ca36beaead4bd5e3824 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 14 Apr 2016 21:12:07 +0100 Subject: Add .NET output --- dotnet/Mammoth/Couscous/mammoth/internal/util/Sets.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dotnet/Mammoth/Couscous/mammoth/internal/util/Sets.cs (limited to 'dotnet/Mammoth/Couscous/mammoth/internal/util/Sets.cs') diff --git a/dotnet/Mammoth/Couscous/mammoth/internal/util/Sets.cs b/dotnet/Mammoth/Couscous/mammoth/internal/util/Sets.cs new file mode 100644 index 0000000..7843537 --- /dev/null +++ b/dotnet/Mammoth/Couscous/mammoth/internal/util/Sets.cs @@ -0,0 +1,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 set(T[] values) { + return new HashSet(new System.Collections.Generic.HashSet(values)); + } + + internal static Set toSet(Iterable iterable) { + return new HashSet(new System.Collections.Generic.HashSet(FromJava.IterableToEnumerable(iterable))); + } + } +} + -- cgit v1.2.3