public static enum CLDevice.Type extends Enum<CLDevice.Type> implements ValuedEnum
| Enum Constant and Description |
|---|
Accelerator |
All |
CPU |
Default |
GPU |
| Modifier and Type | Method and Description |
|---|---|
static EnumSet<CLDevice.Type> |
getEnumSet(long v) |
static long |
getValue(EnumSet<CLDevice.Type> set) |
long |
value() |
static CLDevice.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CLDevice.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CLDevice.Type CPU
public static final CLDevice.Type GPU
public static final CLDevice.Type Accelerator
public static final CLDevice.Type Default
public static final CLDevice.Type All
public static CLDevice.Type[] values()
for (CLDevice.Type c : CLDevice.Type.values()) System.out.println(c);
public static CLDevice.Type 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 long value()
value in interface ValuedEnumpublic static long getValue(EnumSet<CLDevice.Type> set)
public static EnumSet<CLDevice.Type> getEnumSet(long v)
Copyright © 2009-2015. All Rights Reserved.