jdk/src/share/classes/java/util/HashSet.java
changeset 19435 9d7530ff42cb
parent 17168 b7d3500f2516
child 20750 330bf22c39fa
equal deleted inserted replaced
19434:83132c40a585 19435:9d7530ff42cb
   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 }