public static final class DiffMatchPatch.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DiffMatchPatch |
build() |
DiffMatchPatch.Builder |
diffEditCost(int editCost)
Specifies the cost of an empty edit operation in terms of edit characters.
|
DiffMatchPatch.Builder |
matchDistance(int distance)
Specifies how far to search for a match (0 = exact location, 1000+ = broad match).
|
DiffMatchPatch.Builder |
matchMaxbits(short maxbits)
Spedifies number of bits in an int.
|
DiffMatchPatch.Builder |
matchThreshold(float threshold)
Specifies the matchThreshold at what point is no match declared (0.0 = perfection, 1.0 = very loose).
|
DiffMatchPatch.Builder |
patchDeleteThreshold(float threshold)
Specifies the patchThreshold at what point is no match declared (0.0 = perfection, 1.0 = very loose).
|
DiffMatchPatch.Builder |
patchMargin(int margin)
Specifies the patch patchMargin/chunk size for context length.
|
DiffMatchPatch.Builder |
patchTimeout(float timeout)
Specifies the number of seconds to map a diff before giving up (0 for infinity).
|
public DiffMatchPatch.Builder patchTimeout(float timeout)
timeout
- the time out in seconds.Builder
to support method chaining.public DiffMatchPatch.Builder diffEditCost(int editCost)
editCost
- the cost in terms of edit characters.Builder
to support method chaining.public DiffMatchPatch.Builder matchThreshold(float threshold)
threshold
- the matchThreshold to be used.Builder
to support method chaining.public DiffMatchPatch.Builder matchDistance(int distance)
distance
- how war aways to search for a match.Builder
to support method chaining.public DiffMatchPatch.Builder patchDeleteThreshold(float threshold)
threshold
- the patch matchThreshold to be used.Builder
to support method chaining.public DiffMatchPatch.Builder patchMargin(int margin)
margin
- the the patch patchMarginBuilder
to support method chaining.public DiffMatchPatch.Builder matchMaxbits(short maxbits)
maxbits
- the number of bits in an int.Builder
to support method chaining.public DiffMatchPatch build()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.