Enum ColorDeviation
- java.lang.Object
-
- java.lang.Enum<ColorDeviation>
-
- bg.codexio.ai.openai.api.sdk.images.tolerance.ColorDeviation
-
- All Implemented Interfaces:
Serializable,Comparable<ColorDeviation>
public enum ColorDeviation extends Enum<ColorDeviation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALMOST_THE_WHOLE_PICTUREBALANCED_TOLERANCEEVERYTHINGHALFSMALL_DIFFERENCETHE_SAMETHIRTY_PERCENTTWENTY_PERCENTVISIBLE_DIFFERENCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleval()static ColorDeviationvalueOf(String name)Returns the enum constant of this type with the specified name.static ColorDeviation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THE_SAME
public static final ColorDeviation THE_SAME
-
SMALL_DIFFERENCE
public static final ColorDeviation SMALL_DIFFERENCE
-
BALANCED_TOLERANCE
public static final ColorDeviation BALANCED_TOLERANCE
-
VISIBLE_DIFFERENCE
public static final ColorDeviation VISIBLE_DIFFERENCE
-
TWENTY_PERCENT
public static final ColorDeviation TWENTY_PERCENT
-
THIRTY_PERCENT
public static final ColorDeviation THIRTY_PERCENT
-
HALF
public static final ColorDeviation HALF
-
ALMOST_THE_WHOLE_PICTURE
public static final ColorDeviation ALMOST_THE_WHOLE_PICTURE
-
EVERYTHING
public static final ColorDeviation EVERYTHING
-
-
Method Detail
-
values
public static ColorDeviation[] 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 (ColorDeviation c : ColorDeviation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColorDeviation 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
-
val
public double val()
-
-