diff options
Diffstat (limited to 'gee/readonlylist.vala')
-rw-r--r-- | gee/readonlylist.vala | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/gee/readonlylist.vala b/gee/readonlylist.vala index 58d5e9a..8be3f27 100644 --- a/gee/readonlylist.vala +++ b/gee/readonlylist.vala @@ -86,10 +86,10 @@ internal class Gee.ReadOnlyList<G> : Gee.ReadOnlyCollection<G>, List<G> { } /** - * Unimplemented method (read only list). + * {@inheritDoc} */ public List<G>? slice (int start, int stop) { - assert_not_reached (); + return ((Gee.List<G>) _collection).slice (start, stop); } /** @@ -116,7 +116,7 @@ internal class Gee.ReadOnlyList<G> : Gee.ReadOnlyCollection<G>, List<G> { /** * {@inheritDoc} */ - public void sort (CompareFunc? compare = null) { + public void sort (owned CompareDataFunc<G>? compare = null) { assert_not_reached (); } @@ -128,31 +128,15 @@ internal class Gee.ReadOnlyList<G> : Gee.ReadOnlyCollection<G>, List<G> { } - private class Iterator<G> : ReadOnlyCollection.Iterator<G>, BidirIterator<G>, ListIterator<G> { + protected class Iterator<G> : ReadOnlyCollection.Iterator<G>, ListIterator<G> { public Iterator (ListIterator<G> iterator) { base (iterator); } - public bool previous () { - return ((ListIterator<G>) _iter).previous (); - } - - public bool has_previous () { - return ((ListIterator<G>) _iter).has_previous (); - } - - public bool last () { - return ((ListIterator<G>) _iter).last (); - } - public new void set (G item) { assert_not_reached (); } - public void insert (G item) { - assert_not_reached (); - } - public void add (G item) { assert_not_reached (); } |