AutoTweaker API
Toggle table of contents
0.2.0-alpha.1+d0e71621
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
AutoTweaker API
AutoTweaker API
/
io.github.autotweaker.api.types.tool
/
UiBlock
/
Diff
Diff
jvm
@
Serializable
data
class
Diff
(
val
filePath
:
Path
,
val
oldContent
:
String
?
,
val
newContent
:
String
)
:
UiBlock
(
source
)
文件变更的新旧内容,应完整,便于适配器显示正确的行号。
对于创建的全新文件,
oldContent
将为 null。
Members
Constructors
Diff
Link copied to clipboard
jvm
constructor
(
filePath
:
Path
,
oldContent
:
String
?
,
newContent
:
String
)
Properties
file
Path
Link copied to clipboard
jvm
@
Serializable
(
with
=
PathSerializer::class
)
val
filePath
:
Path
new
Content
Link copied to clipboard
jvm
val
newContent
:
String
old
Content
Link copied to clipboard
jvm
val
oldContent
:
String
?