From 45e530dceda42282fae56b4c4f5fa7865f57899d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 4 Jun 2016 16:03:56 +0100 Subject: Remove dotnet (use submodule from dotnet repo instead) --- dotnet/Mammoth/Couscous/java/util/HashSet.cs | 34 ---------------------------- 1 file changed, 34 deletions(-) delete mode 100644 dotnet/Mammoth/Couscous/java/util/HashSet.cs (limited to 'dotnet/Mammoth/Couscous/java/util/HashSet.cs') diff --git a/dotnet/Mammoth/Couscous/java/util/HashSet.cs b/dotnet/Mammoth/Couscous/java/util/HashSet.cs deleted file mode 100644 index ac10075..0000000 --- a/dotnet/Mammoth/Couscous/java/util/HashSet.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.Collections.Generic; - -namespace Mammoth.Couscous.java.util { - internal class HashSet : Set { - private readonly ISet _set; - - internal HashSet() : this(new System.Collections.Generic.HashSet()) { - } - - internal HashSet(ISet set) { - _set = set; - } - - public Iterator iterator() { - return ToJava.EnumeratorToIterator(_set.GetEnumerator()); - } - - public bool isEmpty() { - return _set.Count == 0; - } - - public int size() { - return _set.Count; - } - - public bool contains(object value) { - return value is T && _set.Contains((T)value); - } - - public void add(T value) { - _set.Add(value); - } - } -} -- cgit v1.2.3