Package io.netty.microbench.buffer
Enum ByteBufAllocatorAllocPatternBenchmark.AllocatorType
- java.lang.Object
-
- java.lang.Enum<ByteBufAllocatorAllocPatternBenchmark.AllocatorType>
-
- io.netty.microbench.buffer.ByteBufAllocatorAllocPatternBenchmark.AllocatorType
-
- All Implemented Interfaces:
Serializable,Comparable<ByteBufAllocatorAllocPatternBenchmark.AllocatorType>
- Enclosing class:
- ByteBufAllocatorAllocPatternBenchmark
public static enum ByteBufAllocatorAllocPatternBenchmark.AllocatorType extends Enum<ByteBufAllocatorAllocPatternBenchmark.AllocatorType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteBufAllocatorAllocPatternBenchmark.AllocatorTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ByteBufAllocatorAllocPatternBenchmark.AllocatorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADAPTIVE
public static final ByteBufAllocatorAllocPatternBenchmark.AllocatorType ADAPTIVE
-
POOLED
public static final ByteBufAllocatorAllocPatternBenchmark.AllocatorType POOLED
-
-
Method Detail
-
values
public static ByteBufAllocatorAllocPatternBenchmark.AllocatorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ByteBufAllocatorAllocPatternBenchmark.AllocatorType c : ByteBufAllocatorAllocPatternBenchmark.AllocatorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ByteBufAllocatorAllocPatternBenchmark.AllocatorType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-