/[classpath]/classpath/java/util/TreeSet.java
ViewVC logotype

Diff of /classpath/java/util/TreeSet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15.2.7 by gnu_andrew, Tue Aug 2 20:12:30 2005 UTC revision 1.15.2.8 by tromey, Thu Oct 6 13:41:52 2005 UTC
# Line 147  public class TreeSet<T> extends Abstract Line 147  public class TreeSet<T> extends Abstract
147     *        and will initialize itself with all its elements     *        and will initialize itself with all its elements
148     * @throws NullPointerException if sortedSet is null     * @throws NullPointerException if sortedSet is null
149     */     */
150    public TreeSet(SortedSet<? extends T> sortedSet)    public TreeSet(SortedSet<T> sortedSet)
151    {    {
152      Iterator<T> itr;      Iterator<T> itr;
153    
# Line 278  public class TreeSet<T> extends Abstract Line 278  public class TreeSet<T> extends Abstract
278     * @throws NullPointerException if to is null, but the comparator does not     * @throws NullPointerException if to is null, but the comparator does not
279     *         tolerate null elements     *         tolerate null elements
280     */     */
281    public SortedSet headSet(T to)    public SortedSet<T> headSet(T to)
282    {    {
283      return new TreeSet<T>(map.headMap(to));      return new TreeSet<T>(map.headMap(to));
284    }    }

Legend:
Removed from v.1.15.2.7  
changed lines
  Added in v.1.15.2.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26