[multiple changes]
2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * java/util/HashMap.java (HashEntry.clone): Removed. (HashMap(Map)): Use putAllInternal. (clone): Likewise. (putAllInternal): New method. Efficient counterpart to putAll which does not call put(). * java/util/LinkedHashMap.java (rethread): Removed. (putAllInternal): New method. Clear "head" and "tail". (addEntry): New argument "callRemove". Don't call removeEldestEntry() if callRemove == false. * Makefile.am: Add new classes RandomAccess and LinkedHashMap. * Makefile.in: Rebuilt. 2001-10-15 Eric Blake <ebb9@email.byu.edu> * java/util/Collection.java: Updated javadoc. * java/util/Comparator.java: Updated javadoc. * java/util/Enumeration.java: Updated javadoc. * java/util/Iterator.java: Updated javadoc. * java/util/List.java: Updated javadoc. * java/util/ListIterator.java: Updated javadoc. * java/util/Map.java: Updated javadoc. * java/util/RandomAccess.java: New file. * java/util/Set.java: Updated javadoc. * java/util/SortedMap.java: Updated javadoc. * java/util/SortedSet.java: Updated javadoc. From-SVN: r46277
This commit is contained in:
parent
ffb5e2e21f
commit
41878ce27e
16 changed files with 2218 additions and 1757 deletions
|
@ -42,7 +42,12 @@ package java.util;
|
|||
* be obtained by the enumeration method in class Collections.
|
||||
*
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date August 25, 1998.
|
||||
* @author Eric Blake <ebb9@email.byu.edu>
|
||||
* @see Iterator
|
||||
* @see Hashtable
|
||||
* @see Vector
|
||||
* @since 1.0
|
||||
* @status updated to 1.4
|
||||
*/
|
||||
public interface Enumeration
|
||||
{
|
||||
|
@ -50,8 +55,8 @@ public interface Enumeration
|
|||
* Tests whether there are elements remaining in the enumeration.
|
||||
*
|
||||
* @return true if there is at least one more element in the enumeration,
|
||||
* that is, if the next call to nextElement will not throw a
|
||||
* NoSuchElementException.
|
||||
* that is, if the next call to nextElement will not throw a
|
||||
* NoSuchElementException.
|
||||
*/
|
||||
boolean hasMoreElements();
|
||||
|
||||
|
@ -59,7 +64,7 @@ public interface Enumeration
|
|||
* Obtain the next element in the enumeration.
|
||||
*
|
||||
* @return the next element in the enumeration
|
||||
* @exception NoSuchElementException if there are no more elements
|
||||
* @throws NoSuchElementException if there are no more elements
|
||||
*/
|
||||
Object nextElement() throws NoSuchElementException;
|
||||
Object nextElement();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue