com.ptc.windchill.upgrade.ius
Class IncrementalUpdate.MinTargetVersionComparer

java.lang.Object
  extended bycom.ptc.windchill.upgrade.ius.IncrementalUpdate.MinTargetVersionComparer
Enclosing class:
IncrementalUpdate

static class IncrementalUpdate.MinTargetVersionComparer
extends Object

Create a comparator that will enable sorting Incremental Updates based on the minimum version of their target version set.


Field Summary
private  boolean wereComparable_
           
 
Constructor Summary
(package private) IncrementalUpdate.MinTargetVersionComparer()
           
 
Method Summary
 int compare(IncrementalUpdate left_iu, IncrementalUpdate right_iu)
          Comparing one incremental update to another to decide which order migrators will be placed and executed in.
 boolean wereComparable()
          For the last invocation of compare, were the two incremental updates comparable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wereComparable_

private boolean wereComparable_
Constructor Detail

IncrementalUpdate.MinTargetVersionComparer

IncrementalUpdate.MinTargetVersionComparer()
Method Detail

wereComparable

public boolean wereComparable()
For the last invocation of compare, were the two incremental updates comparable. IUs are comparable if they share one or more common assembly ids.


compare

public int compare(IncrementalUpdate left_iu,
                   IncrementalUpdate right_iu)
Comparing one incremental update to another to decide which order migrators will be placed and executed in.

Parameters:
left_iu - IncrementalUpdate
right_iu - IncrementalUpdate
Returns:
the value of comparing the left_iu and right_iu
Throws:
WTRuntimeException