src/java.base/share/classes/java/util/doc-files/coll-designfaq.html
changeset 49522 3930c4d4f805
parent 47216 71c04702a3d5
child 54206 003cc64366da
equal deleted inserted replaced
49521:755e1b55a4df 49522:3930c4d4f805
     1 <!DOCTYPE html>
     1 <!DOCTYPE html>
     2 <!--
     2 <!--
     3  Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
     3  Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
     4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 
     5 
     6  This code is free software; you can redistribute it and/or modify it
     6  This code is free software; you can redistribute it and/or modify it
     7  under the terms of the GNU General Public License version 2 only, as
     7  under the terms of the GNU General Public License version 2 only, as
     8  published by the Free Software Foundation.  Oracle designates this
     8  published by the Free Software Foundation.  Oracle designates this
   369 Eliminating all views from the JDK would greatly increase the cost
   369 Eliminating all views from the JDK would greatly increase the cost
   370 of common operations like making a Collection out of an array, and
   370 of common operations like making a Collection out of an array, and
   371 would do away with many useful facilities (like synchronizing
   371 would do away with many useful facilities (like synchronizing
   372 wrappers). One view that we see as being particularly useful is
   372 wrappers). One view that we see as being particularly useful is
   373 <a href=
   373 <a href=
   374 "../List.html#subList-int-int-">List.subList</a>.
   374 "../List.html#subList(int,int)">List.subList</a>.
   375 The existence of this method means that people who write methods
   375 The existence of this method means that people who write methods
   376 taking List on input do not have to write secondary forms taking an
   376 taking List on input do not have to write secondary forms taking an
   377 offset and a length (as they do for arrays).</p>
   377 offset and a length (as they do for arrays).</p>
   378 </li>
   378 </li>
   379 <li><a id="a27"><b>Why don't you provide for
   379 <li><a id="a27"><b>Why don't you provide for