OtherByteBufHolder Class — netty Architecture
Architecture documentation for the OtherByteBufHolder class in DefaultByteBufHolderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a37c84d4_4cd4_556d_675c_093f5fbaa876["OtherByteBufHolder"] 97c08ace_0d7c_841d_01cf_5782771a8f13["DefaultByteBufHolderTest.java"] a37c84d4_4cd4_556d_675c_093f5fbaa876 -->|defined in| 97c08ace_0d7c_841d_01cf_5782771a8f13 afe00fab_b5c0_2c4a_9871_208e22997b3c["OtherByteBufHolder()"] a37c84d4_4cd4_556d_675c_093f5fbaa876 -->|method| afe00fab_b5c0_2c4a_9871_208e22997b3c 59a7764a_e4ac_b093_873c_13ba66266ca1["equals()"] a37c84d4_4cd4_556d_675c_093f5fbaa876 -->|method| 59a7764a_e4ac_b093_873c_13ba66266ca1 00c5cd94_f3a7_248a_55c8_5d975cf31583["hashCode()"] a37c84d4_4cd4_556d_675c_093f5fbaa876 -->|method| 00c5cd94_f3a7_248a_55c8_5d975cf31583
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/DefaultByteBufHolderTest.java lines 77–107
private static class OtherByteBufHolder extends DefaultByteBufHolder {
private final int extraField;
OtherByteBufHolder(final ByteBuf data, final int extraField) {
super(data);
this.extraField = extraField;
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
if (!super.equals(o)) {
return false;
}
final OtherByteBufHolder that = (OtherByteBufHolder) o;
return extraField == that.extraField;
}
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + extraField;
return result;
}
}
Source
Frequently Asked Questions
What is the OtherByteBufHolder class?
OtherByteBufHolder is a class in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/DefaultByteBufHolderTest.java.
Where is OtherByteBufHolder defined?
OtherByteBufHolder is defined in buffer/src/test/java/io/netty/buffer/DefaultByteBufHolderTest.java at line 77.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free