@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Returns a Set view of the mappings contained in this map. |
69 | - * @return SetInterface |
|
69 | + * @return TupleSet |
|
70 | 70 | */ |
71 | 71 | public function entrySet() |
72 | 72 | { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | /** |
118 | 118 | * Returns a Set view of the keys contained in this map. |
119 | - * @return SetInterface |
|
119 | + * @return ArraySet |
|
120 | 120 | */ |
121 | 121 | public function keySet() |
122 | 122 | { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | |
182 | 182 | /** |
183 | 183 | * Returns a Collection view of the values contained in this map. |
184 | - * @return CollectionInterface |
|
184 | + * @return ArrayList |
|
185 | 185 | */ |
186 | 186 | public function values() |
187 | 187 | { |
@@ -1,11 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Jmw\Collection\Map; |
3 | 3 | |
4 | -use Jmw\Collection\Set\SetAbstract; |
|
4 | +use Jmw\Collection\Exception\UnsupportedOperationException; |
|
5 | 5 | use Jmw\Collection\Lists\ArrayList; |
6 | -use Jmw\Collection\Set\TupleSet; |
|
7 | 6 | use Jmw\Collection\Set\ArraySet; |
8 | -use Jmw\Collection\Exception\UnsupportedOperationException; |
|
7 | +use Jmw\Collection\Set\TupleSet; |
|
9 | 8 | /** |
10 | 9 | * Hash table based implementation of the Map interface. |
11 | 10 | * This implementation provides all of the optional map operations, |
@@ -1,15 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Jmw\Collection\Set; |
3 | 3 | |
4 | -use Jmw\Collection\Lists\Tuple; |
|
5 | -use Jmw\Collection\Lists\ArrayList; |
|
6 | -/** |
|
7 | - * An implementation of a Set using a php array |
|
8 | - * It is advisable to use a HashSet in most instances, |
|
9 | - * as it is significantly faster |
|
10 | - * @author john |
|
11 | - * |
|
12 | - */ |
|
4 | + |
|
13 | 5 | class ArraySet extends SetAbstract |
14 | 6 | { |
15 | 7 | /** |