public enum ResizeBehavior extends Enum<ResizeBehavior>
BufferBitSet. One of:
| Enum Constant and Description |
|---|
ALLOCATE
Additional storage will be allocated using
ByteBuffer.allocate(int). |
ALLOCATE_DIRECT
Additional storage will be allocated using
ByteBuffer.allocateDirect(int). |
NO_RESIZE
Additional storage will not be allocated.
|
| Modifier and Type | Method and Description |
|---|---|
static ResizeBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResizeBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResizeBehavior NO_RESIZE
IndexOutOfBoundsException.public static final ResizeBehavior ALLOCATE
ByteBuffer.allocate(int).
Note: If an external ByteBuffer was supplied, or an
internal buffer unwrapped, they will no longer be updated by future writes to
this bitset after a resize.
public static final ResizeBehavior ALLOCATE_DIRECT
ByteBuffer.allocateDirect(int).
Note: If an external ByteBuffer was supplied, or an
internal buffer unwrapped, they will no longer be updated by future writes to
this bitset after a resize.
public static ResizeBehavior[] values()
for (ResizeBehavior c : ResizeBehavior.values()) System.out.println(c);
public static ResizeBehavior 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 nullCopyright © 2019. All rights reserved.