public class DiffOptions extends Object
| Constructor and Description |
|---|
DiffOptions() |
| Modifier and Type | Method and Description |
|---|---|
static DiffOptions |
defaults()
Get the default diff options.
|
boolean |
getCheckLines() |
Clock |
getClock() |
int |
getEditCost()
Cost of an empty edit operation in terms of edit characters.
|
double |
getTimeout()
Number of seconds to map a diff before giving up (0 for infinity).
|
DiffOptions |
withCheckLines(boolean checkLines)
Set the option to check line-line diff before inter-line diffs.
|
DiffOptions |
withClock(Clock clock)
Use the clock instance when calculating deadline oversteps.
|
DiffOptions |
withEditCost(int editCost)
Set the cost of an empty edit operation in terms of edit characters
|
DiffOptions |
withTimeout(double timeout)
Set the number of seconds to map a diff before giving up (0 for infinity).
|
public static DiffOptions defaults()
public DiffOptions withTimeout(double timeout)
timeout - The number of seconds.public DiffOptions withEditCost(int editCost)
editCost - The cost value.public DiffOptions withCheckLines(boolean checkLines)
checkLines - If we should check line-diff.DiffBase.lineMode(String, String)public DiffOptions withClock(Clock clock)
clock - The clock to use.public double getTimeout()
public int getEditCost()
public boolean getCheckLines()
public Clock getClock()
Copyright © 2016. All rights reserved.