DetalisationLevel
Leave feedback
On this page
Inheritance: java.lang.Object, java.lang.Enum
public enum DetalisationLevel extends Enum<DetalisationLevel>
Specifies the level of comparison details.
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);
}
| Field | Description |
|---|---|
| LOW | Represents the Low comparison level. |
| MIDDLE | Represents the Middle comparison level. |
| HIGH | Represents the High comparison level. |
| Method | Description |
|---|---|
| values() | |
| valueOf(String name) | |
| fromString(String toStringValue) | Parses string representation of DetalisationLevel to get the enum constant. |
| toString() | String representation of DetalisationLevel. |
public static final DetalisationLevel LOW
Represents the Low comparison level.
The “Low” level provides the best speed for comparisons but sacrifices comparison quality. Comparison is performed per-word.
public static final DetalisationLevel MIDDLE
Represents the Middle comparison level.
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 final DetalisationLevel HIGH
Represents the High comparison level.
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 DetalisationLevel[] values()
Returns: com.groupdocs.comparison.options.style.DetalisationLevel[]
public static DetalisationLevel valueOf(String name)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String |
Returns: DetalisationLevel
public static DetalisationLevel fromString(String toStringValue)
Parses string representation of DetalisationLevel to get the enum constant.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| toStringValue | java.lang.String | The string representation of DetalisationLevel |
Returns: DetalisationLevel - DetalisationLevel enum constant associated with input string
public String toString()
String representation of DetalisationLevel.
Returns: java.lang.String - string value of enum constant
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.