test_class.declarator: buffer
test_class.modifier: private
test_class.original_string: private ChannelBuffer buffer;
test_class.type: ChannelBuffer
test_class.var_name: buffer
test_class.file: dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/buffer/HeapChannelBufferTest.java
test_class.identifier: HeapChannelBufferTest
test_class.superclass: extends AbstractChannelBufferTest
test_case.body: @Test
      void testEqualsAndHashcode() {
          HeapChannelBuffer b1 = new HeapChannelBuffer("hello-world".getBytes());
          HeapChannelBuffer b2 = new HeapChannelBuffer("hello-world".getBytes());
  
          MatcherAssert.assertThat(b1.equals(b2), is(true));
          MatcherAssert.assertThat(b1.hashCode(), is(b2.hashCode()));
  
          b1 = new HeapChannelBuffer("hello-world".getBytes());
          b2 = new HeapChannelBuffer("hello-worldd".getBytes());
  
          MatcherAssert.assertThat(b1.equals(b2), is(false));
          MatcherAssert.assertThat(b1.hashCode(), not(b2.hashCode()));
      }
test_case.class_method_signature: HeapChannelBufferTest.testEqualsAndHashcode()
test_case.full_signature: @Test void testEqualsAndHashcode()
test_case.identifier: testEqualsAndHashcode
test_case.invocations: getBytes getBytes assertThat equals is assertThat hashCode is hashCode getBytes getBytes assertThat equals is assertThat hashCode not hashCode
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEqualsAndHashcode()
focal_class.declarator: array
focal_class.modifier: protected final
focal_class.original_string: protected final byte[] array;
focal_class.type: byte[]
focal_class.var_name: array
focal_class.file: dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/buffer/HeapChannelBuffer.java
focal_class.identifier: HeapChannelBuffer
focal_class.class_method_signature: HeapChannelBuffer.HeapChannelBuffer(int length)
focal_class.full_signature: public  HeapChannelBuffer(int length)
focal_class.identifier: HeapChannelBuffer
focal_class.modifiers: public
focal_class.parameters: (int length)
focal_class.signature:  HeapChannelBuffer(int length)
focal_class.class_method_signature: HeapChannelBuffer.HeapChannelBuffer(byte[] array)
focal_class.full_signature: public  HeapChannelBuffer(byte[] array)
focal_class.identifier: HeapChannelBuffer
focal_class.modifiers: public
focal_class.parameters: (byte[] array)
focal_class.signature:  HeapChannelBuffer(byte[] array)
focal_class.class_method_signature: HeapChannelBuffer.HeapChannelBuffer(byte[] array, int readerIndex, int writerIndex)
focal_class.full_signature: protected  HeapChannelBuffer(byte[] array, int readerIndex, int writerIndex)
focal_class.identifier: HeapChannelBuffer
focal_class.modifiers: protected
focal_class.parameters: (byte[] array, int readerIndex, int writerIndex)
focal_class.signature:  HeapChannelBuffer(byte[] array, int readerIndex, int writerIndex)
focal_class.class_method_signature: HeapChannelBuffer.isDirect()
focal_class.full_signature: @Override public boolean isDirect()
focal_class.identifier: isDirect
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDirect()
focal_class.class_method_signature: HeapChannelBuffer.capacity()
focal_class.full_signature: @Override public int capacity()
focal_class.identifier: capacity
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int capacity()
focal_class.class_method_signature: HeapChannelBuffer.hasArray()
focal_class.full_signature: @Override public boolean hasArray()
focal_class.identifier: hasArray
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasArray()
focal_class.class_method_signature: HeapChannelBuffer.array()
focal_class.full_signature: @Override public byte[] array()
focal_class.identifier: array
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] array()
focal_class.class_method_signature: HeapChannelBuffer.arrayOffset()
focal_class.full_signature: @Override public int arrayOffset()
focal_class.identifier: arrayOffset
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int arrayOffset()
focal_class.class_method_signature: HeapChannelBuffer.getByte(int index)
focal_class.full_signature: @Override public byte getByte(int index)
focal_class.identifier: getByte
focal_class.modifiers: @Override public
focal_class.parameters: (int index)
focal_class.return: byte
focal_class.signature: byte getByte(int index)
focal_class.class_method_signature: HeapChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length)
focal_class.full_signature: @Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length)
focal_class.identifier: getBytes
focal_class.modifiers: @Override public
focal_class.parameters: (int index, ChannelBuffer dst, int dstIndex, int length)
focal_class.return: void
focal_class.signature: void getBytes(int index, ChannelBuffer dst, int dstIndex, int length)
focal_class.class_method_signature: HeapChannelBuffer.getBytes(int index, byte[] dst, int dstIndex, int length)
focal_class.full_signature: @Override public void getBytes(int index, byte[] dst, int dstIndex, int length)
focal_class.identifier: getBytes
focal_class.modifiers: @Override public
focal_class.parameters: (int index, byte[] dst, int dstIndex, int length)
focal_class.return: void
focal_class.signature: void getBytes(int index, byte[] dst, int dstIndex, int length)
focal_class.class_method_signature: HeapChannelBuffer.getBytes(int index, ByteBuffer dst)
focal_class.full_signature: @Override public void getBytes(int index, ByteBuffer dst)
focal_class.identifier: getBytes
focal_class.modifiers: @Override public
focal_class.parameters: (int index, ByteBuffer dst)
focal_class.return: void
focal_class.signature: void getBytes(int index, ByteBuffer dst)
focal_class.class_method_signature: HeapChannelBuffer.getBytes(int index, OutputStream out, int length)
focal_class.full_signature: @Override public void getBytes(int index, OutputStream out, int length)
focal_class.identifier: getBytes
focal_class.modifiers: @Override public
focal_class.parameters: (int index, OutputStream out, int length)
focal_class.return: void
focal_class.signature: void getBytes(int index, OutputStream out, int length)
focal_class.class_method_signature: HeapChannelBuffer.getBytes(int index, GatheringByteChannel out, int length)
focal_class.full_signature: public int getBytes(int index, GatheringByteChannel out, int length)
focal_class.identifier: getBytes
focal_class.modifiers: public
focal_class.parameters: (int index, GatheringByteChannel out, int length)
focal_class.return: int
focal_class.signature: int getBytes(int index, GatheringByteChannel out, int length)
focal_class.class_method_signature: HeapChannelBuffer.setByte(int index, int value)
focal_class.full_signature: @Override public void setByte(int index, int value)
focal_class.identifier: setByte
focal_class.modifiers: @Override public
focal_class.parameters: (int index, int value)
focal_class.return: void
focal_class.signature: void setByte(int index, int value)
focal_class.class_method_signature: HeapChannelBuffer.setBytes(int index, ChannelBuffer src, int srcIndex, int length)
focal_class.full_signature: @Override public void setBytes(int index, ChannelBuffer src, int srcIndex, int length)
focal_class.identifier: setBytes
focal_class.modifiers: @Override public
focal_class.parameters: (int index, ChannelBuffer src, int srcIndex, int length)
focal_class.return: void
focal_class.signature: void setBytes(int index, ChannelBuffer src, int srcIndex, int length)
focal_class.class_method_signature: HeapChannelBuffer.setBytes(int index, byte[] src, int srcIndex, int length)
focal_class.full_signature: @Override public void setBytes(int index, byte[] src, int srcIndex, int length)
focal_class.identifier: setBytes
focal_class.modifiers: @Override public
focal_class.parameters: (int index, byte[] src, int srcIndex, int length)
focal_class.return: void
focal_class.signature: void setBytes(int index, byte[] src, int srcIndex, int length)
focal_class.class_method_signature: HeapChannelBuffer.setBytes(int index, ByteBuffer src)
focal_class.full_signature: @Override public void setBytes(int index, ByteBuffer src)
focal_class.identifier: setBytes
focal_class.modifiers: @Override public
focal_class.parameters: (int index, ByteBuffer src)
focal_class.return: void
focal_class.signature: void setBytes(int index, ByteBuffer src)
focal_class.class_method_signature: HeapChannelBuffer.setBytes(int index, InputStream in, int length)
focal_class.full_signature: @Override public int setBytes(int index, InputStream in, int length)
focal_class.identifier: setBytes
focal_class.modifiers: @Override public
focal_class.parameters: (int index, InputStream in, int length)
focal_class.return: int
focal_class.signature: int setBytes(int index, InputStream in, int length)
focal_class.class_method_signature: HeapChannelBuffer.setBytes(int index, ScatteringByteChannel in, int length)
focal_class.full_signature: public int setBytes(int index, ScatteringByteChannel in, int length)
focal_class.identifier: setBytes
focal_class.modifiers: public
focal_class.parameters: (int index, ScatteringByteChannel in, int length)
focal_class.return: int
focal_class.signature: int setBytes(int index, ScatteringByteChannel in, int length)
focal_class.class_method_signature: HeapChannelBuffer.copy(int index, int length)
focal_class.full_signature: @Override public ChannelBuffer copy(int index, int length)
focal_class.identifier: copy
focal_class.modifiers: @Override public
focal_class.parameters: (int index, int length)
focal_class.return: ChannelBuffer
focal_class.signature: ChannelBuffer copy(int index, int length)
focal_class.class_method_signature: HeapChannelBuffer.factory()
focal_class.full_signature: @Override public ChannelBufferFactory factory()
focal_class.identifier: factory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ChannelBufferFactory
focal_class.signature: ChannelBufferFactory factory()
focal_class.class_method_signature: HeapChannelBuffer.toByteBuffer(int index, int length)
focal_class.full_signature: @Override public ByteBuffer toByteBuffer(int index, int length)
focal_class.identifier: toByteBuffer
focal_class.modifiers: @Override public
focal_class.parameters: (int index, int length)
focal_class.return: ByteBuffer
focal_class.signature: ByteBuffer toByteBuffer(int index, int length)
focal_class.superclass: extends AbstractChannelBuffer
focal_method.body: @Override
      public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) {
          if (dst instanceof HeapChannelBuffer) {
              getBytes(index, ((HeapChannelBuffer) dst).array, dstIndex, length);
          } else {
              dst.setBytes(dstIndex, array, index, length);
          }
      }
focal_method.class_method_signature: HeapChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length)
focal_method.full_signature: @Override public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length)
focal_method.identifier: getBytes
focal_method.invocations: getBytes setBytes
focal_method.modifiers: @Override public
focal_method.parameters: (int index, ChannelBuffer dst, int dstIndex, int length)
focal_method.return: void
focal_method.signature: void getBytes(int index, ChannelBuffer dst, int dstIndex, int length)