---
schema_version: "1"
id: 0803d521d00aa05b95018e75f0f5d76245a35403cf88a0fbc439998636fc0863
title: Diff 型 (dw::util::Diff)
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-diff-types.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-diff-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ced0735f2426a48266a863fee98c23de6bb04dd58c1e4c325c32fbc9cdd40b6f
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# Diff 型 (dw::util::Diff)

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 33.3333%;">
<col style="width: 33.3334%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">型</th>
<th class="tableblock halign-left valign-top">定義</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Diff (差分)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>type Diff = { matches: Boolean, diffs: Array&lt;Difference&gt; }</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">2 つの値の間の違い全体を表します。</p>
<p class="tableblock"><strong>違いがない場合の例</strong>​:</p>
<p class="tableblock"><code>{ "matches": true, "diffs": [ ] }</code>​</p>
<p class="tableblock"><strong>違いがある場合の例</strong>​:</p>
<p class="tableblock"><code>{ "matches": true, "diffs": [ "expected": "4", "actual": "2", "path": "(root).a.@.d" ] }</code>​</p>
<p class="tableblock">別の例については、​<code>diff</code>​ 関数を参照してください。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Difference (差)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>type Difference = { expected: String, actual: String, path: String }</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">指定された構造の 2 つの値の間の 1 つの違いを表します。</p></td>
</tr>
</tbody>
</table>