public enum BufferStrategy extends Enum<BufferStrategy>
Modifier and Type | Class and Description |
---|---|
static interface |
BufferStrategy.BufferProvider<T> |
Enum Constant and Description |
---|
BY_INSTANCE |
QUEUE |
SINGLETON |
THREAD_LOCAL |
Modifier and Type | Method and Description |
---|---|
abstract BufferStrategy.BufferProvider<char[]> |
newCharProvider(int size) |
abstract BufferStrategy.BufferProvider<StringBuilder> |
newStringBuilderProvider(int size) |
static BufferStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BufferStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BufferStrategy BY_INSTANCE
public static final BufferStrategy THREAD_LOCAL
public static final BufferStrategy QUEUE
public static final BufferStrategy SINGLETON
public static BufferStrategy[] values()
for (BufferStrategy c : BufferStrategy.values()) System.out.println(c);
public static BufferStrategy 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 BufferStrategy.BufferProvider<char[]> newCharProvider(int size)
public abstract BufferStrategy.BufferProvider<StringBuilder> newStringBuilderProvider(int size)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.