Returns an iterable instance for all entries of this map. @return iterable
()
| 129 | * @return iterable |
| 130 | */ |
| 131 | public final Iterable<Entry> entries() { |
| 132 | return () -> new Iterator<>() { |
| 133 | private long i; |
| 134 | |
| 135 | @Override |
| 136 | public boolean hasNext() { |
| 137 | return i < structSize(); |
| 138 | } |
| 139 | |
| 140 | @Override |
| 141 | public Entry next() { |
| 142 | final long c = i++; |
| 143 | return new Entry(keyAt(c), valueAt(c)); |
| 144 | } |
| 145 | }; |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * Puts a value with the specified key into this map. |