org.apache.tomcat.util.collections
Class MultiMapNamesEnumeration
java.lang.Object
org.apache.tomcat.util.collections.MultiMapNamesEnumeration
- All Implemented Interfaces:
- Enumeration
public final class MultiMapNamesEnumeration
- extends Object
- implements Enumeration
Enumerate the distinct header names.
Each nextElement() is O(n) ( a comparation is
done with all previous elements ).
This is less frequesnt than add() -
we want to keep add O(1).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements in interface Enumeration
nextElement
public Object nextElement()
- Specified by:
nextElement in interface Enumeration
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.