Enum ImplementationType
- java.lang.Object
-
- java.lang.Enum<ImplementationType>
-
- nl.elec332.util.implementationmanager.api.ImplementationType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ImplementationType>
public enum ImplementationType extends java.lang.Enum<ImplementationType>
Created by Elec332 on 29-3-2020 Used for extensions with different implementation types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GPUGPU_FASTJAVAJAVA_DEFAULTJAVA_FASTNATIVENATIVE_FASTOTHER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSpeed(int relativeSpeed)booleanisNative()static ImplementationTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ImplementationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OTHER
public static final ImplementationType OTHER
-
JAVA_DEFAULT
public static final ImplementationType JAVA_DEFAULT
-
JAVA
public static final ImplementationType JAVA
-
JAVA_FAST
public static final ImplementationType JAVA_FAST
-
NATIVE
public static final ImplementationType NATIVE
-
NATIVE_FAST
public static final ImplementationType NATIVE_FAST
-
GPU
public static final ImplementationType GPU
-
GPU_FAST
public static final ImplementationType GPU_FAST
-
-
Method Detail
-
values
public static ImplementationType[] 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 (ImplementationType c : ImplementationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImplementationType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isNative
public boolean isNative()
-
getSpeed
public int getSpeed(int relativeSpeed)
-
-