public enum DetalisationLevel extends Enum<DetalisationLevel>
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
CompareOptions compareOptions = new CompareOptions();
compareOptions.setDetectStyleChanges(false);
compareOptions.setDetalisationLevel(DetalisationLevel.HIGH);
comparer.compare(resultFile, compareOptions);
}
Comparer,
CompareOptions| Enum Constant and Description |
|---|
HIGH
Represents the High comparison level.
|
LOW
Represents the Low comparison level.
|
MIDDLE
Represents the Middle comparison level.
|
| Modifier and Type | Method and Description |
|---|---|
static DetalisationLevel |
fromString(String toStringValue)
Parses string representation of DetalisationLevel to get the enum constant.
|
String |
toString()
String representation of DetalisationLevel.
|
static DetalisationLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DetalisationLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DetalisationLevel HIGH
The "High" level is the best comparison quality, but the lowest speed. Comparison is performed per-character considering character case and spaces count.
public static final DetalisationLevel LOW
The "Low" level provides the best speed for comparisons but sacrifices comparison quality. Comparison is performed per-word.
public static final DetalisationLevel MIDDLE
The "Middle" level is a reasonable compromise between comparison speed and quality. Comparison is performed per-character, but ignoring character case and spaces count.
public static DetalisationLevel fromString(String toStringValue)
Parses string representation of DetalisationLevel to get the enum constant.
toStringValue - The string representation of DetalisationLevelIllegalArgumentException - if string is not one of DetalisationLevel valuespublic String toString()
String representation of DetalisationLevel.
toString in class Enum<DetalisationLevel>public static DetalisationLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static DetalisationLevel[] values()
for (DetalisationLevel c : DetalisationLevel.values()) System.out.println(c);
Copyright © 2024. All rights reserved.