public enum FrontierTypeStrategy extends java.lang.Enum<FrontierTypeStrategy>
| Enum Constant and Description |
|---|
AUTO_GROW
Start with short and switch to int on demand.
|
INT
Works for up to 2^31 + 2^15 levels at the cost of increased memory consumption.
|
SHORT
Works for up to 2^16 levels.
|
| Modifier and Type | Method and Description |
|---|---|
static FrontierTypeStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FrontierTypeStrategy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final FrontierTypeStrategy AUTO_GROW
public static final FrontierTypeStrategy INT
public static final FrontierTypeStrategy SHORT
IllegalStateException if values exceeds limit.public static FrontierTypeStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static FrontierTypeStrategy[] values()
for (FrontierTypeStrategy c : FrontierTypeStrategy.values())
System.out.println(c);
Copyright © 2017 Oracle Corp. All Rights Reserved.