equal
deleted
inserted
replaced
310 E e = (E) s.readObject(); |
310 E e = (E) s.readObject(); |
311 map.put(e, PRESENT); |
311 map.put(e, PRESENT); |
312 } |
312 } |
313 } |
313 } |
314 |
314 |
|
315 /** |
|
316 * Creates a <em><a href="Spliterator.html#binding">late-binding</a></em> |
|
317 * and <em>fail-fast</em> {@link Spliterator} over the elements in this |
|
318 * set. |
|
319 * |
|
320 * <p>The {@code Spliterator} reports {@link Spliterator#SIZED} and |
|
321 * {@link Spliterator#DISTINCT}. Overriding implementations should document |
|
322 * the reporting of additional characteristic values. |
|
323 * |
|
324 * @return a {@code Spliterator} over the elements in this set |
|
325 * @since 1.8 |
|
326 */ |
315 public Spliterator<E> spliterator() { |
327 public Spliterator<E> spliterator() { |
316 return new HashMap.KeySpliterator<E,Object>(map, 0, -1, 0, 0); |
328 return new HashMap.KeySpliterator<E,Object>(map, 0, -1, 0, 0); |
317 } |
329 } |
318 } |
330 } |