consistentEqualsAndHashCodeWithAbstractBytebuf() — netty Function Reference
Architecture documentation for the consistentEqualsAndHashCodeWithAbstractBytebuf() function in EmptyByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8f49832c_ec11_6e35_bd0a_9bf1b4550ddf["consistentEqualsAndHashCodeWithAbstractBytebuf()"] 39b14dbe_5dfc_efb6_b919_0b1a849f7832["EmptyByteBufTest"] 8f49832c_ec11_6e35_bd0a_9bf1b4550ddf -->|defined in| 39b14dbe_5dfc_efb6_b919_0b1a849f7832 style 8f49832c_ec11_6e35_bd0a_9bf1b4550ddf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/EmptyByteBufTest.java lines 98–107
@Test
public void consistentEqualsAndHashCodeWithAbstractBytebuf() {
ByteBuf empty = new EmptyByteBuf(UnpooledByteBufAllocator.DEFAULT);
ByteBuf emptyAbstract = new UnpooledHeapByteBuf(UnpooledByteBufAllocator.DEFAULT, 0, 0);
assertEquals(emptyAbstract, empty);
assertEquals(emptyAbstract.hashCode(), empty.hashCode());
assertEquals(EmptyByteBuf.EMPTY_BYTE_BUF_HASH_CODE, empty.hashCode());
assertTrue(emptyAbstract.release());
assertFalse(empty.release());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does consistentEqualsAndHashCodeWithAbstractBytebuf() do?
consistentEqualsAndHashCodeWithAbstractBytebuf() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/EmptyByteBufTest.java.
Where is consistentEqualsAndHashCodeWithAbstractBytebuf() defined?
consistentEqualsAndHashCodeWithAbstractBytebuf() is defined in buffer/src/test/java/io/netty/buffer/EmptyByteBufTest.java at line 98.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free