org.apache.tomcat.util.http
class: NamesEnumerator [javadoc |
source]
java.lang.Object
org.apache.tomcat.util.http.NamesEnumerator
All Implemented Interfaces:
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).
Field Summary |
---|
int | pos | |
int | size | |
String | next | |
MimeHeaders | headers | |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.tomcat.util.http.NamesEnumerator Detail: |
public boolean hasMoreElements() {
return next!=null;
}
|
public Object nextElement() {
String current=next;
findNext();
return current;
}
|