| 182 | } |
| 183 | |
| 184 | private class Values implements Collection<V> { |
| 185 | public int size() { |
| 186 | return LinkedHashMap.this.size(); |
| 187 | } |
| 188 | |
| 189 | public boolean isEmpty() { |
| 190 | return LinkedHashMap.this.isEmpty(); |
| 191 | } |
| 192 | |
| 193 | public boolean contains(Object value) { |
| 194 | return containsValue(value); |
| 195 | } |
| 196 | |
| 197 | public boolean containsAll(Collection<?> c) { |
| 198 | if (c == null) { |
| 199 | throw new NullPointerException("collection is null"); |
| 200 | } |
| 201 | |
| 202 | Iterator<?> it = c.iterator(); |
| 203 | while (it.hasNext()) { |
| 204 | if (! contains(it.next())) { |
| 205 | return false; |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | return true; |
| 210 | } |
| 211 | |
| 212 | public boolean add(V value) { |
| 213 | throw new UnsupportedOperationException(); |
| 214 | } |
| 215 | |
| 216 | public boolean addAll(Collection<? extends V> collection) { |
| 217 | throw new UnsupportedOperationException(); |
| 218 | } |
| 219 | |
| 220 | public boolean remove(Object value) { |
| 221 | throw new UnsupportedOperationException(); |
| 222 | } |
| 223 | |
| 224 | public boolean removeAll(Collection<?> c) { |
| 225 | throw new UnsupportedOperationException(); |
| 226 | } |
| 227 | |
| 228 | public Object[] toArray() { |
| 229 | return toArray(new Object[size()]); |
| 230 | } |
| 231 | |
| 232 | public <T> T[] toArray(T[] array) { |
| 233 | return avian.Data.toArray(this, array); |
| 234 | } |
| 235 | |
| 236 | public void clear() { |
| 237 | LinkedHashMap.this.clear(); |
| 238 | } |
| 239 | |
| 240 | public Iterator<V> iterator() { |
| 241 | return new avian.Data.ValueIterator(new MyIterator()); |
nothing calls this directly
no outgoing calls
no test coverage detected