diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-03-30 23:09:24 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-04-01 16:15:41 +0100 |
| commit | 5b174110627839214c1413255e1c6715ff7d0aab (patch) | |
| tree | 3f2a97c071f82c0e44d9846a931f813474250764 /Mammoth/Couscous/java/util/ArrayList.cs | |
| parent | 99ed1b53f084322c06975a2183d812db5f257d34 (diff) | |
Update java-mammoth to 1.3.1
Diffstat (limited to 'Mammoth/Couscous/java/util/ArrayList.cs')
| -rw-r--r-- | Mammoth/Couscous/java/util/ArrayList.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Mammoth/Couscous/java/util/ArrayList.cs b/Mammoth/Couscous/java/util/ArrayList.cs index 4414123..81d180c 100644 --- a/Mammoth/Couscous/java/util/ArrayList.cs +++ b/Mammoth/Couscous/java/util/ArrayList.cs @@ -12,6 +12,9 @@ namespace Mammoth.Couscous.java.util { _list = list; } + internal ArrayList(List<T> list) : this(new System.Collections.Generic.List<T>(FromJava.IterableToEnumerable(list))) { + } + public Iterator<T> iterator() { return ToJava.EnumeratorToIterator(_list.GetEnumerator()); } @@ -45,5 +48,9 @@ namespace Mammoth.Couscous.java.util { _list.RemoveAt(index); return value; } + + public void set(int index, T value) { + _list[index] = value; + } } } |
