Enum GitFileDiffCacheImpl.DiffAlgorithm
- java.lang.Object
-
- java.lang.Enum<GitFileDiffCacheImpl.DiffAlgorithm>
-
- com.google.gerrit.server.patch.gitfilediff.GitFileDiffCacheImpl.DiffAlgorithm
-
- All Implemented Interfaces:
Serializable
,Comparable<GitFileDiffCacheImpl.DiffAlgorithm>
- Enclosing class:
- GitFileDiffCacheImpl
public static enum GitFileDiffCacheImpl.DiffAlgorithm extends Enum<GitFileDiffCacheImpl.DiffAlgorithm>
Enum for the supported diff algorithms for the file diff computation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HISTOGRAM
HISTOGRAM_WITHOUT_MYERS_FALLBACK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GitFileDiffCacheImpl.DiffAlgorithm
valueOf(String name)
Returns the enum constant of this type with the specified name.static GitFileDiffCacheImpl.DiffAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HISTOGRAM
public static final GitFileDiffCacheImpl.DiffAlgorithm HISTOGRAM
-
HISTOGRAM_WITHOUT_MYERS_FALLBACK
public static final GitFileDiffCacheImpl.DiffAlgorithm HISTOGRAM_WITHOUT_MYERS_FALLBACK
-
-
Method Detail
-
values
public static GitFileDiffCacheImpl.DiffAlgorithm[] 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 (GitFileDiffCacheImpl.DiffAlgorithm c : GitFileDiffCacheImpl.DiffAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GitFileDiffCacheImpl.DiffAlgorithm 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
-
-