@Test public void testSize() { Http2Headers headers = newTrailers(); assertEquals(otherHeaders().length / 2, headers.size()); }
@Override public int size() { return (pseudoHeaders.length + otherHeaders.length) >>> 1; }
ReadOnlyHttp2Headers implements Http2Headers { @Override public int size() { return (pseudoHeaders.length + otherHeaders.length) >>> 1; } }
ReadOnlyHttp2Headers implements Http2Headers { @Override public int size() { return (pseudoHeaders.length + otherHeaders.length) >>> 1; } private  ReadOnlyHttp2Headers(boolean validateHeaders, AsciiString[] pseudoHeaders, AsciiString... otherHeaders); }
ReadOnlyHttp2Headers implements Http2Headers { @Override public int size() { return (pseudoHeaders.length + otherHeaders.length) >>> 1; } private  ReadOnlyHttp2Headers(boolean validateHeaders, AsciiString[] pseudoHeaders, AsciiString... otherHeaders); static ReadOnlyHttp2Headers trailers(boolean validateHeaders, AsciiString... otherHeaders); static ReadOnlyHttp2Headers clientHeaders(boolean validateHeaders,
                                                     AsciiString method, AsciiString path,
                                                     AsciiString scheme, AsciiString authority,
                                                     AsciiString... otherHeaders); static ReadOnlyHttp2Headers serverHeaders(boolean validateHeaders,
                                                     AsciiString status,
                                                     AsciiString... otherHeaders); @Override CharSequence get(CharSequence name); @Override CharSequence get(CharSequence name, CharSequence defaultValue); @Override CharSequence getAndRemove(CharSequence name); @Override CharSequence getAndRemove(CharSequence name, CharSequence defaultValue); @Override List<CharSequence> getAll(CharSequence name); @Override List<CharSequence> getAllAndRemove(CharSequence name); @Override Boolean getBoolean(CharSequence name); @Override boolean getBoolean(CharSequence name, boolean defaultValue); @Override Byte getByte(CharSequence name); @Override byte getByte(CharSequence name, byte defaultValue); @Override Character getChar(CharSequence name); @Override char getChar(CharSequence name, char defaultValue); @Override Short getShort(CharSequence name); @Override short getShort(CharSequence name, short defaultValue); @Override Integer getInt(CharSequence name); @Override int getInt(CharSequence name, int defaultValue); @Override Long getLong(CharSequence name); @Override long getLong(CharSequence name, long defaultValue); @Override Float getFloat(CharSequence name); @Override float getFloat(CharSequence name, float defaultValue); @Override Double getDouble(CharSequence name); @Override double getDouble(CharSequence name, double defaultValue); @Override Long getTimeMillis(CharSequence name); @Override long getTimeMillis(CharSequence name, long defaultValue); @Override Boolean getBooleanAndRemove(CharSequence name); @Override boolean getBooleanAndRemove(CharSequence name, boolean defaultValue); @Override Byte getByteAndRemove(CharSequence name); @Override byte getByteAndRemove(CharSequence name, byte defaultValue); @Override Character getCharAndRemove(CharSequence name); @Override char getCharAndRemove(CharSequence name, char defaultValue); @Override Short getShortAndRemove(CharSequence name); @Override short getShortAndRemove(CharSequence name, short defaultValue); @Override Integer getIntAndRemove(CharSequence name); @Override int getIntAndRemove(CharSequence name, int defaultValue); @Override Long getLongAndRemove(CharSequence name); @Override long getLongAndRemove(CharSequence name, long defaultValue); @Override Float getFloatAndRemove(CharSequence name); @Override float getFloatAndRemove(CharSequence name, float defaultValue); @Override Double getDoubleAndRemove(CharSequence name); @Override double getDoubleAndRemove(CharSequence name, double defaultValue); @Override Long getTimeMillisAndRemove(CharSequence name); @Override long getTimeMillisAndRemove(CharSequence name, long defaultValue); @Override boolean contains(CharSequence name); @Override boolean contains(CharSequence name, CharSequence value); @Override boolean containsObject(CharSequence name, Object value); @Override boolean containsBoolean(CharSequence name, boolean value); @Override boolean containsByte(CharSequence name, byte value); @Override boolean containsChar(CharSequence name, char value); @Override boolean containsShort(CharSequence name, short value); @Override boolean containsInt(CharSequence name, int value); @Override boolean containsLong(CharSequence name, long value); @Override boolean containsFloat(CharSequence name, float value); @Override boolean containsDouble(CharSequence name, double value); @Override boolean containsTimeMillis(CharSequence name, long value); @Override int size(); @Override boolean isEmpty(); @Override Set<CharSequence> names(); @Override Http2Headers add(CharSequence name, CharSequence value); @Override Http2Headers add(CharSequence name, Iterable<? extends CharSequence> values); @Override Http2Headers add(CharSequence name, CharSequence... values); @Override Http2Headers addObject(CharSequence name, Object value); @Override Http2Headers addObject(CharSequence name, Iterable<?> values); @Override Http2Headers addObject(CharSequence name, Object... values); @Override Http2Headers addBoolean(CharSequence name, boolean value); @Override Http2Headers addByte(CharSequence name, byte value); @Override Http2Headers addChar(CharSequence name, char value); @Override Http2Headers addShort(CharSequence name, short value); @Override Http2Headers addInt(CharSequence name, int value); @Override Http2Headers addLong(CharSequence name, long value); @Override Http2Headers addFloat(CharSequence name, float value); @Override Http2Headers addDouble(CharSequence name, double value); @Override Http2Headers addTimeMillis(CharSequence name, long value); @Override Http2Headers add(Headers<? extends CharSequence, ? extends CharSequence, ?> headers); @Override Http2Headers set(CharSequence name, CharSequence value); @Override Http2Headers set(CharSequence name, Iterable<? extends CharSequence> values); @Override Http2Headers set(CharSequence name, CharSequence... values); @Override Http2Headers setObject(CharSequence name, Object value); @Override Http2Headers setObject(CharSequence name, Iterable<?> values); @Override Http2Headers setObject(CharSequence name, Object... values); @Override Http2Headers setBoolean(CharSequence name, boolean value); @Override Http2Headers setByte(CharSequence name, byte value); @Override Http2Headers setChar(CharSequence name, char value); @Override Http2Headers setShort(CharSequence name, short value); @Override Http2Headers setInt(CharSequence name, int value); @Override Http2Headers setLong(CharSequence name, long value); @Override Http2Headers setFloat(CharSequence name, float value); @Override Http2Headers setDouble(CharSequence name, double value); @Override Http2Headers setTimeMillis(CharSequence name, long value); @Override Http2Headers set(Headers<? extends CharSequence, ? extends CharSequence, ?> headers); @Override Http2Headers setAll(Headers<? extends CharSequence, ? extends CharSequence, ?> headers); @Override boolean remove(CharSequence name); @Override Http2Headers clear(); @Override Iterator<Map.Entry<CharSequence, CharSequence>> iterator(); @Override Iterator<CharSequence> valueIterator(CharSequence name); @Override Http2Headers method(CharSequence value); @Override Http2Headers scheme(CharSequence value); @Override Http2Headers authority(CharSequence value); @Override Http2Headers path(CharSequence value); @Override Http2Headers status(CharSequence value); @Override CharSequence method(); @Override CharSequence scheme(); @Override CharSequence authority(); @Override CharSequence path(); @Override CharSequence status(); @Override boolean contains(CharSequence name, CharSequence value, boolean caseInsensitive); @Override String toString(); }
ReadOnlyHttp2Headers implements Http2Headers { @Override public int size() { return (pseudoHeaders.length + otherHeaders.length) >>> 1; } private  ReadOnlyHttp2Headers(boolean validateHeaders, AsciiString[] pseudoHeaders, AsciiString... otherHeaders); static ReadOnlyHttp2Headers trailers(boolean validateHeaders, AsciiString... otherHeaders); static ReadOnlyHttp2Headers clientHeaders(boolean validateHeaders,
                                                     AsciiString method, AsciiString path,
                                                     AsciiString scheme, AsciiString authority,
                                                     AsciiString... otherHeaders); static ReadOnlyHttp2Headers serverHeaders(boolean validateHeaders,
                                                     AsciiString status,
                                                     AsciiString... otherHeaders); @Override CharSequence get(CharSequence name); @Override CharSequence get(CharSequence name, CharSequence defaultValue); @Override CharSequence getAndRemove(CharSequence name); @Override CharSequence getAndRemove(CharSequence name, CharSequence defaultValue); @Override List<CharSequence> getAll(CharSequence name); @Override List<CharSequence> getAllAndRemove(CharSequence name); @Override Boolean getBoolean(CharSequence name); @Override boolean getBoolean(CharSequence name, boolean defaultValue); @Override Byte getByte(CharSequence name); @Override byte getByte(CharSequence name, byte defaultValue); @Override Character getChar(CharSequence name); @Override char getChar(CharSequence name, char defaultValue); @Override Short getShort(CharSequence name); @Override short getShort(CharSequence name, short defaultValue); @Override Integer getInt(CharSequence name); @Override int getInt(CharSequence name, int defaultValue); @Override Long getLong(CharSequence name); @Override long getLong(CharSequence name, long defaultValue); @Override Float getFloat(CharSequence name); @Override float getFloat(CharSequence name, float defaultValue); @Override Double getDouble(CharSequence name); @Override double getDouble(CharSequence name, double defaultValue); @Override Long getTimeMillis(CharSequence name); @Override long getTimeMillis(CharSequence name, long defaultValue); @Override Boolean getBooleanAndRemove(CharSequence name); @Override boolean getBooleanAndRemove(CharSequence name, boolean defaultValue); @Override Byte getByteAndRemove(CharSequence name); @Override byte getByteAndRemove(CharSequence name, byte defaultValue); @Override Character getCharAndRemove(CharSequence name); @Override char getCharAndRemove(CharSequence name, char defaultValue); @Override Short getShortAndRemove(CharSequence name); @Override short getShortAndRemove(CharSequence name, short defaultValue); @Override Integer getIntAndRemove(CharSequence name); @Override int getIntAndRemove(CharSequence name, int defaultValue); @Override Long getLongAndRemove(CharSequence name); @Override long getLongAndRemove(CharSequence name, long defaultValue); @Override Float getFloatAndRemove(CharSequence name); @Override float getFloatAndRemove(CharSequence name, float defaultValue); @Override Double getDoubleAndRemove(CharSequence name); @Override double getDoubleAndRemove(CharSequence name, double defaultValue); @Override Long getTimeMillisAndRemove(CharSequence name); @Override long getTimeMillisAndRemove(CharSequence name, long defaultValue); @Override boolean contains(CharSequence name); @Override boolean contains(CharSequence name, CharSequence value); @Override boolean containsObject(CharSequence name, Object value); @Override boolean containsBoolean(CharSequence name, boolean value); @Override boolean containsByte(CharSequence name, byte value); @Override boolean containsChar(CharSequence name, char value); @Override boolean containsShort(CharSequence name, short value); @Override boolean containsInt(CharSequence name, int value); @Override boolean containsLong(CharSequence name, long value); @Override boolean containsFloat(CharSequence name, float value); @Override boolean containsDouble(CharSequence name, double value); @Override boolean containsTimeMillis(CharSequence name, long value); @Override int size(); @Override boolean isEmpty(); @Override Set<CharSequence> names(); @Override Http2Headers add(CharSequence name, CharSequence value); @Override Http2Headers add(CharSequence name, Iterable<? extends CharSequence> values); @Override Http2Headers add(CharSequence name, CharSequence... values); @Override Http2Headers addObject(CharSequence name, Object value); @Override Http2Headers addObject(CharSequence name, Iterable<?> values); @Override Http2Headers addObject(CharSequence name, Object... values); @Override Http2Headers addBoolean(CharSequence name, boolean value); @Override Http2Headers addByte(CharSequence name, byte value); @Override Http2Headers addChar(CharSequence name, char value); @Override Http2Headers addShort(CharSequence name, short value); @Override Http2Headers addInt(CharSequence name, int value); @Override Http2Headers addLong(CharSequence name, long value); @Override Http2Headers addFloat(CharSequence name, float value); @Override Http2Headers addDouble(CharSequence name, double value); @Override Http2Headers addTimeMillis(CharSequence name, long value); @Override Http2Headers add(Headers<? extends CharSequence, ? extends CharSequence, ?> headers); @Override Http2Headers set(CharSequence name, CharSequence value); @Override Http2Headers set(CharSequence name, Iterable<? extends CharSequence> values); @Override Http2Headers set(CharSequence name, CharSequence... values); @Override Http2Headers setObject(CharSequence name, Object value); @Override Http2Headers setObject(CharSequence name, Iterable<?> values); @Override Http2Headers setObject(CharSequence name, Object... values); @Override Http2Headers setBoolean(CharSequence name, boolean value); @Override Http2Headers setByte(CharSequence name, byte value); @Override Http2Headers setChar(CharSequence name, char value); @Override Http2Headers setShort(CharSequence name, short value); @Override Http2Headers setInt(CharSequence name, int value); @Override Http2Headers setLong(CharSequence name, long value); @Override Http2Headers setFloat(CharSequence name, float value); @Override Http2Headers setDouble(CharSequence name, double value); @Override Http2Headers setTimeMillis(CharSequence name, long value); @Override Http2Headers set(Headers<? extends CharSequence, ? extends CharSequence, ?> headers); @Override Http2Headers setAll(Headers<? extends CharSequence, ? extends CharSequence, ?> headers); @Override boolean remove(CharSequence name); @Override Http2Headers clear(); @Override Iterator<Map.Entry<CharSequence, CharSequence>> iterator(); @Override Iterator<CharSequence> valueIterator(CharSequence name); @Override Http2Headers method(CharSequence value); @Override Http2Headers scheme(CharSequence value); @Override Http2Headers authority(CharSequence value); @Override Http2Headers path(CharSequence value); @Override Http2Headers status(CharSequence value); @Override CharSequence method(); @Override CharSequence scheme(); @Override CharSequence authority(); @Override CharSequence path(); @Override CharSequence status(); @Override boolean contains(CharSequence name, CharSequence value, boolean caseInsensitive); @Override String toString();  }