*
* @see org.jnetstream.packet.FastHeaderCache#contains(java.lang.Class)
*/
public boolean contains(Class<? extends Header> c) {
final ProtocolEntry protocol = ProtocolRegistry.lookup(c);
if (protocol == null) {
return false;
}
final int index = protocol.getIndex();
if (index == ProtocolInfo.NO_BIT_INDEX) {
for (int i = 0; i < refs.length; i++) {
final Header rt = refs[i];
if (rt == protocol) {