Enum DifferenceHash.Precision
- java.lang.Object
-
- java.lang.Enum<DifferenceHash.Precision>
-
- dev.brachtendorf.jimagehash.hashAlgorithms.DifferenceHash.Precision
-
- All Implemented Interfaces:
Serializable,Comparable<DifferenceHash.Precision>
- Enclosing class:
- DifferenceHash
public static enum DifferenceHash.Precision extends Enum<DifferenceHash.Precision>
Algorithm precision used during calculation.implnote: Be aware that changing the enum names will alter the algorithm id rendering generated keys unusable
- Author:
- Kilian
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DifferenceHash.PrecisionvalueOf(String name)Returns the enum constant of this type with the specified name.static DifferenceHash.Precision[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Simple
public static final DifferenceHash.Precision Simple
Top to bottom gradient only
-
Double
public static final DifferenceHash.Precision Double
Additionally left to right gradient
-
Triple
public static final DifferenceHash.Precision Triple
Tripple precision (top-bottom, left-right, diagonally)
-
-
Method Detail
-
values
public static DifferenceHash.Precision[] 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 (DifferenceHash.Precision c : DifferenceHash.Precision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DifferenceHash.Precision 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
-
-