- java.lang.Object
-
- java.lang.Enum<CurveFunctionFunction>
-
- org.refcodes.audio.CurveFunctionFunction
-
- All Implemented Interfaces:
Serializable
,Comparable<CurveFunctionFunction>
public enum CurveFunctionFunction extends Enum<CurveFunctionFunction>
Enumeration containing some predefined trigonometric functions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<Double,Double>
getFunction()
Returns the according trigonometric function.static CurveFunctionFunction
valueOf(String name)
Returns the enum constant of this type with the specified name.static CurveFunctionFunction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINE
public static final CurveFunctionFunction SINE
-
COSINE
public static final CurveFunctionFunction COSINE
-
TANGENT
public static final CurveFunctionFunction TANGENT
-
SAWTOOTH
public static final CurveFunctionFunction SAWTOOTH
-
SQUARE
public static final CurveFunctionFunction SQUARE
-
TRIANGLE
public static final CurveFunctionFunction TRIANGLE
-
-
Method Detail
-
values
public static CurveFunctionFunction[] 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 (CurveFunctionFunction c : CurveFunctionFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CurveFunctionFunction 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
-
-