Top Description Fields Constructors Methods
org.glassfish.grizzly.http.util

pack-priv Class NamesIterator

Located in compilation unit of org.glassfish.grizzly.http.util.MimeHeaders.

extends BaseIterator
Class Inheritance

Enumerate the distinct header names. Each nextElement() is O(n) ( a comparison is done with all previous elements ). This is less frequent than add() - we want to keep add O(1).

Field Summary

Modifier and TypeField and Description
pack-priv String
Inherited from org.glassfish.grizzly.http.util.BaseIterator:
currentPosheaderspossize

Constructor Summary

AccessConstructor and Description
pack-priv
NamesIterator(MimeHeaders headers, final boolean trailersOnly)

Method Summary

Modifier and TypeMethod and Description
protected void
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.

public String
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.

Inherited from org.glassfish.grizzly.http.util.BaseIterator:
remove

Field Detail

nextback to summary
pack-priv String next

Constructor Detail

NamesIteratorback to summary
pack-priv NamesIterator(MimeHeaders headers, final boolean trailersOnly)

Method Detail

findNextback to summary
protected void findNext()

Implements abstract org.glassfish.grizzly.http.util.BaseIterator.findNext.

Annotations
@Override
hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Annotations
@Override
nextback to summary
public String next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Annotations
@Override