public enum ByteBufferAllocator extends Enum<ByteBufferAllocator>
| Modifier and Type | Method and Description |
|---|---|
abstract ByteBuffer |
allocate(int capacity) |
static ByteBufferAllocator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteBufferAllocator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteBufferAllocator HEAP
public static final ByteBufferAllocator DIRECT
public static ByteBufferAllocator[] values()
for (ByteBufferAllocator c : ByteBufferAllocator.values()) System.out.println(c);
public static ByteBufferAllocator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract ByteBuffer allocate(int capacity)
Copyright © 2025. All rights reserved.