Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


oracle.javatools.db.diff
Class ListDiffer

java.lang.Object
  extended by oracle.javatools.db.diff.ListDiffer

All Implemented Interfaces:
Differ
Direct Known Subclasses:
OrderedListDiffer

public class ListDiffer
extends java.lang.Object
implements Differ

Differ of lists that uses the Comparators registered with the underlying DiffEngine to compare elements in the two lists to assess whether the contents are different. Ordering is optionally included in the diff by using the constructor argument.

Since:
10.1.3

Constructor Summary
ListDiffer()
          Creates a ListDiffer that doesn't diff order, just contents.
ListDiffer(boolean diffOrder)
          Creates a ListDiffer, optionally including ordering in the diff.

 

Method Summary
 boolean diff(java.lang.Object a, java.lang.Object b)
           
 boolean diff(java.lang.Object a, java.lang.Object b, ResultSet rlist, DiffContext dc)
          Diff two objects and place any results in the DiffContext.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ListDiffer

public ListDiffer()
Creates a ListDiffer that doesn't diff order, just contents.

ListDiffer

public ListDiffer(boolean diffOrder)
Creates a ListDiffer, optionally including ordering in the diff.
Parameters:
diffOrder - if true, a reordered list will be considered a difference.

Method Detail

diff

public boolean diff(java.lang.Object a,
                    java.lang.Object b)

diff

public boolean diff(java.lang.Object a,
                    java.lang.Object b,
                    ResultSet rlist,
                    DiffContext dc)
Description copied from interface: Differ
Diff two objects and place any results in the DiffContext.
Specified by:
diff in interface Differ
Returns:
true if the diff operation has been performed by this Differ.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


Copyright © 1997, 2015, Oracle. All rights reserved.