netty-incubator-buffer-api/src/test/java/io/netty/buffer/api
Chris Vest 7185a59f7a Move composite buffer methods to Buffer
Motivation:
There is no reason for `compose()` to be an instance method on `BufferAllocator` since the allocator implementation should not influence how this method is implemented.

Modification:
Make `compose()` a static method and move it to the `Buffer` interface.
Also move its companion methods `extendComposite()` and `isComposite()` to the `Buffer` interface.

Result:
The composite buffer methods are now in a more sensible place.

Also: decided _against_ making `extendComposite()` and `isComposite()` instance methods, because the subtle behaviours of `extendComposite()` means it would behave quite differently for non-composite buffers.
Also: `isComposite()` is not an instance method because it relates to the hard-coded and concrete `CompositeBuffer` implementation.
2021-02-15 17:46:23 +01:00
..
benchmarks Move composite buffer methods to Buffer 2021-02-15 17:46:23 +01:00
examples Move composite buffer methods to Buffer 2021-02-15 17:46:23 +01:00
BufferRefTest.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
BufferTest.java Move composite buffer methods to Buffer 2021-02-15 17:46:23 +01:00
Fixture.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
ScopeTest.java Add BufHolder and BufRef helper classes 2020-12-14 14:22:37 +01:00