aboutsummaryrefslogtreecommitdiff
path: root/dotnet
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-04-26 20:59:29 +0100
committerMichael Williamson <mike@zwobble.org>2016-04-26 20:59:29 +0100
commit19584d5a04d5b521e7f667e1fc17e5c1a0bac039 (patch)
tree2dbe9edbf8f6a5168f6e562d3cb61ab0eba23966 /dotnet
parent43457f3575072f543060273d5a83b375222c43d3 (diff)
Add runtime files
Diffstat (limited to 'dotnet')
-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" />