aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotnet/Mammoth/Couscous/java/lang/Iterable.cs5
-rw-r--r--dotnet/Mammoth/Couscous/java/util/Iterator.cs6
-rw-r--r--dotnet/Mammoth/Mammoth.csproj2
3 files changed, 13 insertions, 0 deletions
diff --git a/dotnet/Mammoth/Couscous/java/lang/Iterable.cs b/dotnet/Mammoth/Couscous/java/lang/Iterable.cs
new file mode 100644
index 0000000..d050b06
--- /dev/null
+++ b/dotnet/Mammoth/Couscous/java/lang/Iterable.cs
@@ -0,0 +1,5 @@
+namespace Mammoth.Couscous.java.lang {
+ internal interface Iterable<out T> {
+ java.util.Iterator<T> iterator();
+ }
+}
diff --git a/dotnet/Mammoth/Couscous/java/util/Iterator.cs b/dotnet/Mammoth/Couscous/java/util/Iterator.cs
new file mode 100644
index 0000000..0ae48b2
--- /dev/null
+++ b/dotnet/Mammoth/Couscous/java/util/Iterator.cs
@@ -0,0 +1,6 @@
+namespace Mammoth.Couscous.java.util {
+ internal interface Iterator<out T> {
+ bool hasNext();
+ T next();
+ }
+}
diff --git a/dotnet/Mammoth/Mammoth.csproj b/dotnet/Mammoth/Mammoth.csproj
index 1fe296d..1c17a82 100644
--- a/dotnet/Mammoth/Mammoth.csproj
+++ b/dotnet/Mammoth/Mammoth.csproj
@@ -49,6 +49,7 @@
<Compile Include="Couscous\java\io\Closeable.cs" />
<Compile Include="Couscous\java\nio\file\Path.cs" />
<Compile Include="Couscous\java\lang\IndexOutOfBoundsException.cs" />
+ <Compile Include="Couscous\java\lang\Iterable.cs" />
<Compile Include="Couscous\java\lang\RuntimeException.cs" />
<Compile Include="Couscous\java\lang\String.cs" />
<Compile Include="Couscous\java\lang\StringBuilder.cs" />
@@ -63,6 +64,7 @@
<Compile Include="Couscous\java\util\Collection.cs" />
<Compile Include="Couscous\java\util\HashMap.cs" />
<Compile Include="Couscous\java\util\HashSet.cs" />
+ <Compile Include="Couscous\java\util\Iterator.cs" />
<Compile Include="Couscous\java\util\List.cs" />
<Compile Include="Couscous\java\util\Map.cs" />
<Compile Include="Couscous\java\util\NoSuchElementException.cs" />