Package io.grpc.netty
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:
hasNext
in 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:
next
in interfaceIterator<Map.Entry<CharSequence,
CharSequence>>
-
getKey
- Specified by:
getKey
in interfaceMap.Entry<CharSequence,
CharSequence>
-
getValue
- Specified by:
getValue
in interfaceMap.Entry<CharSequence,
CharSequence>
-
setValue
- Specified by:
setValue
in interfaceMap.Entry<CharSequence,
CharSequence>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<Map.Entry<CharSequence,
CharSequence>>
-