Class GrpcHttp2OutboundHeaders.Itr
java.lang.Object
io.grpc.netty.GrpcHttp2OutboundHeaders.Itr
- All Implemented Interfaces:
Iterator<Map.Entry<CharSequence, CharSequence>>, Map.Entry<CharSequence, CharSequence>
- Enclosing class:
GrpcHttp2OutboundHeaders
private class GrpcHttp2OutboundHeaders.Itr
extends Object
implements Map.Entry<CharSequence, CharSequence>, Iterator<Map.Entry<CharSequence, CharSequence>>
-
Field Details
-
idx
private int idx -
current
private io.netty.util.AsciiString[] current -
key
private io.netty.util.AsciiString key -
value
private io.netty.util.AsciiString value
-
-
Constructor Details
-
Itr
private Itr()
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<Map.Entry<CharSequence, CharSequence>>
-
next
This function is ordered specifically to get ideal performance on OpenJDK. If you decide to change it, even in ways that don't seem possible to affect performance, please benchmark speeds before and after.- Specified by:
nextin interfaceIterator<Map.Entry<CharSequence, CharSequence>>
-
getKey
- Specified by:
getKeyin interfaceMap.Entry<CharSequence, CharSequence>
-
getValue
- Specified by:
getValuein interfaceMap.Entry<CharSequence, CharSequence>
-
setValue
- Specified by:
setValuein interfaceMap.Entry<CharSequence, CharSequence>
-
remove
public void remove()- Specified by:
removein interfaceIterator<Map.Entry<CharSequence, CharSequence>>
-