netty-incubator-buffer-api/src/main/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
..
memseg Explode ComponentProcessor into its contained interfaces 2021-02-12 18:28:29 +01:00
AllocatorControl.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
Buffer.java Move composite buffer methods to Buffer 2021-02-15 17:46:23 +01:00
BufferAccessors.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
BufferAllocator.java Move composite buffer methods to Buffer 2021-02-15 17:46:23 +01:00
BufferHolder.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
BufferRef.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
ByteCursor.java Update ByteCursor method names and related javadocs 2020-12-09 11:03:30 +01:00
CleanerPooledDrop.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
CompositeBuffer.java Explode ComponentProcessor into its contained interfaces 2021-02-12 18:28:29 +01:00
Deref.java Introduce Deref abstraction 2021-02-11 14:26:57 +01:00
Drop.java Address review comments on bifurcate PR 2020-12-10 12:51:18 +01:00
ManagedBufferAllocator.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
MemoryManager.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
Owned.java Rename the 'b2' package to 'api' 2020-11-17 15:40:13 +01:00
package-info.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
Rc.java Introduce Deref abstraction 2021-02-11 14:26:57 +01:00
RcSupport.java Introduce Deref abstraction 2021-02-11 14:26:57 +01:00
ReadableComponent.java Explode ComponentProcessor into its contained interfaces 2021-02-12 18:28:29 +01:00
ReadableComponentProcessor.java Explode ComponentProcessor into its contained interfaces 2021-02-12 18:28:29 +01:00
ResourceDisposeFailedException.java Rename the 'b2' package to 'api' 2020-11-17 15:40:13 +01:00
Scope.java Add BufHolder and BufRef helper classes 2020-12-14 14:22:37 +01:00
Send.java Introduce Deref abstraction 2021-02-11 14:26:57 +01:00
SizeClassedMemoryPool.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
Statics.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
TransferSend.java Introduce Deref abstraction 2021-02-11 14:26:57 +01:00
WritableComponent.java Explode ComponentProcessor into its contained interfaces 2021-02-12 18:28:29 +01:00
WritableComponentProcessor.java Explode ComponentProcessor into its contained interfaces 2021-02-12 18:28:29 +01:00