| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0_75) on Mon Jun 08 05:48:08 EDT 2015 --> |
| <title>EqualityHelper (EMF Compare API Specification)</title> |
| <meta name="date" content="2015-06-08"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="EqualityHelper (EMF Compare API Specification)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/EqualityHelper.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><em><span style='font-size:small'><b>EMF Compare</b><br>3.2.0.201506080946</span></em></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/eclipse/emf/compare/utils/EMFComparePrettyPrinter.html" title="class in org.eclipse.emf.compare.utils"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/eclipse/emf/compare/utils/IDiagnosable.html" title="interface in org.eclipse.emf.compare.utils"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/eclipse/emf/compare/utils/EqualityHelper.html" target="_top">Frames</a></li> |
| <li><a href="EqualityHelper.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#fields_inherited_from_class_org.eclipse.emf.common.notify.impl.AdapterImpl">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.eclipse.emf.compare.utils</div> |
| <h2 title="Class EqualityHelper" class="title">Class EqualityHelper</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify.impl">org.eclipse.emf.common.notify.impl.AdapterImpl</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.emf.compare.utils.EqualityHelper</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify">Adapter</a>, <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.Internal.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify">Adapter.Internal</a>, <a href="../../../../../org/eclipse/emf/compare/utils/IEqualityHelper.html" title="interface in org.eclipse.emf.compare.utils">IEqualityHelper</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="strong">EqualityHelper</span> |
| extends <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify.impl">AdapterImpl</a> |
| implements <a href="../../../../../org/eclipse/emf/compare/utils/IEqualityHelper.html" title="interface in org.eclipse.emf.compare.utils">IEqualityHelper</a></pre> |
| <div class="block">EMF Compare needs its own rules for "equality", which are based on similarity instead of strict equality. |
| These will be used throughout the process.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested_class_summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested_classes_inherited_from_class_org.eclipse.emf.common.notify.Adapter"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify">Adapter</a></h3> |
| <code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.Internal.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify">Adapter.Internal</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields_inherited_from_class_org.eclipse.emf.common.notify.impl.AdapterImpl"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.eclipse.emf.common.notify.impl.<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify.impl">AdapterImpl</a></h3> |
| <code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true#target" title="class or interface in org.eclipse.emf.common.notify.impl">target</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#EqualityHelper()">EqualityHelper</a></strong>()</code> |
| <div class="block"><strong>Deprecated.</strong> |
| <div class="block"><i>use the EqualityHelper(Cache) constructor instead.</i></div> |
| </div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#EqualityHelper(com.google.common.cache.LoadingCache)">EqualityHelper</a></strong>(com.google.common.cache.LoadingCache<<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a>,<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/util/URI.html?is-external=true" title="class or interface in org.eclipse.emf.common.util">URI</a>> uriCache)</code> |
| <div class="block">Creates a new EqualityHelper with the given cache.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static com.google.common.cache.LoadingCache<<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a>,<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/util/URI.html?is-external=true" title="class or interface in org.eclipse.emf.common.util">URI</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#createDefaultCache(com.google.common.cache.CacheBuilder)">createDefaultCache</a></strong>(com.google.common.cache.CacheBuilder<<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> cacheBuilder)</code> |
| <div class="block">Create a cache as required by EqualityHelper.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>com.google.common.cache.Cache<<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a>,<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/util/URI.html?is-external=true" title="class or interface in org.eclipse.emf.common.util">URI</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#getCache()">getCache</a></strong>()</code> |
| <div class="block"><strong>Deprecated.</strong> </div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/eclipse/emf/compare/Match.html" title="interface in org.eclipse.emf.compare">Match</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#getMatch(org.eclipse.emf.ecore.EObject)">getMatch</a></strong>(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> o)</code> |
| <div class="block">Retrieves the match of the given EObject.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/emf/compare/Comparison.html" title="interface in org.eclipse.emf.compare">Comparison</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#getTarget()">getTarget</a></strong>()</code></td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/util/URI.html?is-external=true" title="class or interface in org.eclipse.emf.common.util">URI</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#getURI(org.eclipse.emf.ecore.EObject)">getURI</a></strong>(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object)</code> |
| <div class="block"><strong>Deprecated.</strong> </div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#isAdapterForType(java.lang.Object)">isAdapterForType</a></strong>(<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> type)</code></td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#matchingAttributeValues(java.lang.Object,%20java.lang.Object)">matchingAttributeValues</a></strong>(<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object1, |
| <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object2)</code> |
| <div class="block">This should only be used if the two given Objects are known not to be instances of EObjects.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#matchingEObjects(org.eclipse.emf.ecore.EObject,%20org.eclipse.emf.ecore.EObject)">matchingEObjects</a></strong>(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object1, |
| <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object2)</code> |
| <div class="block">Compares two values as EObjects, using their Match if it can be found, comparing through their URIs |
| otherwise.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#matchingURIs(org.eclipse.emf.ecore.EObject,%20org.eclipse.emf.ecore.EObject)">matchingURIs</a></strong>(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object1, |
| <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object2)</code> |
| <div class="block">Compare the URIs (of similar concept) of EObjects.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#matchingValues(org.eclipse.emf.compare.Comparison,%20java.lang.Object,%20java.lang.Object)">matchingValues</a></strong>(<a href="../../../../../org/eclipse/emf/compare/Comparison.html" title="interface in org.eclipse.emf.compare">Comparison</a> comparison, |
| <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object1, |
| <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object2)</code> |
| <div class="block"><strong>Deprecated.</strong> </div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#matchingValues(java.lang.Object,%20java.lang.Object)">matchingValues</a></strong>(<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object1, |
| <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object2)</code> |
| <div class="block">Check that the two given values are "equal", considering the specifics of EMF.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_org.eclipse.emf.common.notify.impl.AdapterImpl"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.emf.common.notify.impl.<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify.impl">AdapterImpl</a></h3> |
| <code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true#notifyChanged(org.eclipse.emf.common.notify.Notification)" title="class or interface in org.eclipse.emf.common.notify.impl">notifyChanged</a>, <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true#setTarget(org.eclipse.emf.common.notify.Notifier)" title="class or interface in org.eclipse.emf.common.notify.impl">setTarget</a>, <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true#unsetTarget(org.eclipse.emf.common.notify.Notifier)" title="class or interface in org.eclipse.emf.common.notify.impl">unsetTarget</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_org.eclipse.emf.common.notify.Adapter"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.eclipse.emf.common.notify.<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify">Adapter</a></h3> |
| <code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.html?is-external=true#notifyChanged(org.eclipse.emf.common.notify.Notification)" title="class or interface in org.eclipse.emf.common.notify">notifyChanged</a>, <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.html?is-external=true#setTarget(org.eclipse.emf.common.notify.Notifier)" title="class or interface in org.eclipse.emf.common.notify">setTarget</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="EqualityHelper()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>EqualityHelper</h4> |
| <pre><a href="http://download.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public EqualityHelper()</pre> |
| <div class="block"><span class="strong">Deprecated.</span> <i>use the EqualityHelper(Cache) constructor instead.</i></div> |
| <div class="block">Creates a new EqualityHelper.</div> |
| </li> |
| </ul> |
| <a name="EqualityHelper(com.google.common.cache.LoadingCache)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>EqualityHelper</h4> |
| <pre>public EqualityHelper(com.google.common.cache.LoadingCache<<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a>,<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/util/URI.html?is-external=true" title="class or interface in org.eclipse.emf.common.util">URI</a>> uriCache)</pre> |
| <div class="block">Creates a new EqualityHelper with the given cache.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>uriCache</code> - the cache to be used for <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/util/EcoreUtil.html?is-external=true#getURI(org.eclipse.emf.ecore.EObject)" title="class or interface in org.eclipse.emf.ecore.util"><code>EcoreUtil.getURI(EObject)</code></a> calls.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getTarget()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTarget</h4> |
| <pre>public <a href="../../../../../org/eclipse/emf/compare/Comparison.html" title="interface in org.eclipse.emf.compare">Comparison</a> getTarget()</pre> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.html?is-external=true#getTarget()" title="class or interface in org.eclipse.emf.common.notify">getTarget</a></code> in interface <code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify">Adapter</a></code></dd> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/eclipse/emf/compare/utils/IEqualityHelper.html#getTarget()">getTarget</a></code> in interface <code><a href="../../../../../org/eclipse/emf/compare/utils/IEqualityHelper.html" title="interface in org.eclipse.emf.compare.utils">IEqualityHelper</a></code></dd> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true#getTarget()" title="class or interface in org.eclipse.emf.common.notify.impl">getTarget</a></code> in class <code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify.impl">AdapterImpl</a></code></dd> |
| <dt><span class="strong">See Also:</span></dt><dd><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true#getTarget()" title="class or interface in org.eclipse.emf.common.notify.impl"><code>AdapterImpl.getTarget()</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="isAdapterForType(java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isAdapterForType</h4> |
| <pre>public boolean isAdapterForType(<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> type)</pre> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.html?is-external=true#isAdapterForType(java.lang.Object)" title="class or interface in org.eclipse.emf.common.notify">isAdapterForType</a></code> in interface <code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/Adapter.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify">Adapter</a></code></dd> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true#isAdapterForType(java.lang.Object)" title="class or interface in org.eclipse.emf.common.notify.impl">isAdapterForType</a></code> in class <code><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true" title="class or interface in org.eclipse.emf.common.notify.impl">AdapterImpl</a></code></dd> |
| <dt><span class="strong">See Also:</span></dt><dd><a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/notify/impl/AdapterImpl.html?is-external=true#isAdapterForType(java.lang.Object)" title="class or interface in org.eclipse.emf.common.notify.impl"><code>AdapterImpl.isAdapterForType(java.lang.Object)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="matchingValues(org.eclipse.emf.compare.Comparison, java.lang.Object, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>matchingValues</h4> |
| <pre><a href="http://download.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public boolean matchingValues(<a href="../../../../../org/eclipse/emf/compare/Comparison.html" title="interface in org.eclipse.emf.compare">Comparison</a> comparison, |
| <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object1, |
| <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object2)</pre> |
| <div class="block"><span class="strong">Deprecated.</span> </div> |
| <div class="block">Check that the two given values are "equal", considering the specifics of EMF.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>comparison</code> - Provides us with the Match necessary for EObject comparison.</dd><dd><code>object1</code> - First of the two objects to compare here.</dd><dd><code>object2</code> - Second of the two objects to compare here.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if both objects are to be considered equal, <code>false</code> otherwise.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#matchingValues(java.lang.Object,%20java.lang.Object)"><code>matchingValues(Object, Object)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="matchingValues(java.lang.Object, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>matchingValues</h4> |
| <pre>public boolean matchingValues(<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object1, |
| <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object2)</pre> |
| <div class="block">Check that the two given values are "equal", considering the specifics of EMF.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/eclipse/emf/compare/utils/IEqualityHelper.html#matchingValues(java.lang.Object,%20java.lang.Object)">matchingValues</a></code> in interface <code><a href="../../../../../org/eclipse/emf/compare/utils/IEqualityHelper.html" title="interface in org.eclipse.emf.compare.utils">IEqualityHelper</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>object1</code> - First of the two objects to compare here.</dd><dd><code>object2</code> - Second of the two objects to compare here.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if both objects are to be considered equal, <code>false</code> otherwise.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/emf/compare/utils/IEqualityHelper.html#matchingValues(java.lang.Object,%20java.lang.Object)"><code>IEqualityHelper.matchingValues(java.lang.Object, java.lang.Object)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="matchingEObjects(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>matchingEObjects</h4> |
| <pre>protected boolean matchingEObjects(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object1, |
| <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object2)</pre> |
| <div class="block">Compares two values as EObjects, using their Match if it can be found, comparing through their URIs |
| otherwise.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>object1</code> - First of the two objects to compare here.</dd><dd><code>object2</code> - Second of the two objects to compare here.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if these two EObjects are to be considered equal, <code>false</code> |
| otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="getMatch(org.eclipse.emf.ecore.EObject)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMatch</h4> |
| <pre>protected <a href="../../../../../org/eclipse/emf/compare/Match.html" title="interface in org.eclipse.emf.compare">Match</a> getMatch(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> o)</pre> |
| <div class="block">Retrieves the match of the given EObject. This will cache the latest access so as to avoid a hashmap |
| lookup in the comparison's inverse cross referencer. This is most useful when computing the LCS of two |
| sequences, where we call <a href="../../../../../org/eclipse/emf/compare/utils/EqualityHelper.html#matchingEObjects(org.eclipse.emf.ecore.EObject,%20org.eclipse.emf.ecore.EObject)"><code>matchingEObjects(EObject, EObject)</code></a> over and over with the same first |
| object.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - The object for which we need the associated Match.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Match of this EObject if any, <code>null</code> otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="matchingURIs(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>matchingURIs</h4> |
| <pre>protected boolean matchingURIs(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object1, |
| <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object2)</pre> |
| <div class="block">Compare the URIs (of similar concept) of EObjects.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>object1</code> - First of the two objects to compare here.</dd><dd><code>object2</code> - Second of the two objects to compare here.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if these two EObjects have the same URIs, <code>false</code> otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="matchingAttributeValues(java.lang.Object, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>matchingAttributeValues</h4> |
| <pre>public boolean matchingAttributeValues(<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object1, |
| <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> object2)</pre> |
| <div class="block">This should only be used if the two given Objects are known not to be instances of EObjects. EObjects |
| passed for comparison through here will be compared through their <a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang"><code>Object.equals(Object)</code></a> |
| implementation.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/eclipse/emf/compare/utils/IEqualityHelper.html#matchingAttributeValues(java.lang.Object,%20java.lang.Object)">matchingAttributeValues</a></code> in interface <code><a href="../../../../../org/eclipse/emf/compare/utils/IEqualityHelper.html" title="interface in org.eclipse.emf.compare.utils">IEqualityHelper</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>object1</code> - First of the two objects to compare here.</dd><dd><code>object2</code> - Second of the two objects to compare here.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if both objects are to be considered equal, <code>false</code> otherwise.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/emf/compare/utils/IEqualityHelper.html#matchingAttributeValues(java.lang.Object,%20java.lang.Object)"><code>IEqualityHelper.matchingAttributeValues(java.lang.Object, |
| java.lang.Object)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getURI(org.eclipse.emf.ecore.EObject)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getURI</h4> |
| <pre><a href="http://download.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public <a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/util/URI.html?is-external=true" title="class or interface in org.eclipse.emf.common.util">URI</a> getURI(<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a> object)</pre> |
| <div class="block"><span class="strong">Deprecated.</span> </div> |
| <div class="block">The EqualityHelper often needs to get an EObject uri. As such it has an internal cache that clients |
| might leverage through this method.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>object</code> - any EObject.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the URI of the given EObject, or <code>null</code> if we somehow could not compute it.</dd></dl> |
| </li> |
| </ul> |
| <a name="getCache()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCache</h4> |
| <pre><a href="http://download.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public com.google.common.cache.Cache<<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a>,<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/util/URI.html?is-external=true" title="class or interface in org.eclipse.emf.common.util">URI</a>> getCache()</pre> |
| <div class="block"><span class="strong">Deprecated.</span> </div> |
| <div class="block">Returns the cache used by this object.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the cache used by this object.</dd></dl> |
| </li> |
| </ul> |
| <a name="createDefaultCache(com.google.common.cache.CacheBuilder)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>createDefaultCache</h4> |
| <pre>public static com.google.common.cache.LoadingCache<<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EObject.html?is-external=true" title="class or interface in org.eclipse.emf.ecore">EObject</a>,<a href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/common/util/URI.html?is-external=true" title="class or interface in org.eclipse.emf.common.util">URI</a>> createDefaultCache(com.google.common.cache.CacheBuilder<<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="http://download.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> cacheBuilder)</pre> |
| <div class="block">Create a cache as required by EqualityHelper.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>cacheBuilder</code> - The builder to use to instantiate the cache.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the new cache.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/EqualityHelper.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><em><span style='font-size:small'><b>EMF Compare</b><br>3.2.0.201506080946</span></em></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/eclipse/emf/compare/utils/EMFComparePrettyPrinter.html" title="class in org.eclipse.emf.compare.utils"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/eclipse/emf/compare/utils/IDiagnosable.html" title="interface in org.eclipse.emf.compare.utils"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/eclipse/emf/compare/utils/EqualityHelper.html" target="_top">Frames</a></li> |
| <li><a href="EqualityHelper.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#fields_inherited_from_class_org.eclipse.emf.common.notify.impl.AdapterImpl">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small><br><span style='font-size:small;float:right'>Copyright (c) 2006, 2014 Obeo and others. All rights reserved.</span></small></p> |
| </body> |
| </html> |