175. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/11/2019 10:54:13 AM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

175.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\model\lookup AbstractNamedActiveSortedLookup.java Wed May 29 15:26:04 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\model\lookup AbstractNamedActiveSortedLookup.java Mon Jun 10 19:19:45 2019 UTC

175.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 118
Changed 1 2
Inserted 0 0
Removed 0 0

175.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

175.4 Active regular expressions

No regular expressions were active.

175.5 Comparison detail

  1   package go v.va.med.f w.model.lo okup;
  2  
  3   import org .apache.co mmons.lang .builder.C ompareToBu ilder;
  4  
  5   /**
  6    * A looku p that has  the quali ties of 1)  a name, 2 ) an activ e flag and  3) a
  7    * sortOrd er field.  This shoul d be mappe d to a dat abase tabl e with all  three
  8    * fields  required.
  9    * 
  10    * @author   DNS
  11    * 
  12    */
  13   public cla ss Abstrac tNamedActi veSortedLo okup exten ds Abstrac tNamedActi veLookup i mplements
  14                    Comp arable<Abs tractNamed ActiveSort edLookup>  {
  15  
  16           pr ivate stat ic final l ong serial VersionUID  = -542513 8464281507 257L;
  17  
  18           pr ivate int  sortOrder  = -1;
  19  
  20           /* *
  21            *  Returns a  value tha t describe s the rela tive posit ion of the  object wh en
  22            *  in a sort ed collect ion.
  23            *  
  24            *  @return A  value tha t describe s the rela tive posit ion of the  object wh en
  25            *          i n a sorted  collectio n.
  26            * /
  27           pu blic int g etSortOrde r() {
  28                    retu rn sortOrd er;
  29           }
  30  
  31           /* *
  32            *  Sets a va lue that d escribes t he relativ e position  of the ob ject when  in a
  33            *  sorted co llection.
  34            *  
  35            *  @param so rtOrder
  36            *              A value  that descr ibes the r elative po sition of  the object
  37            *              when in  a sorted c ollection.
  38            * /
  39           pu blic void  setSortOrd er(int sor tOrder) {
  40                    this .sortOrder  = sortOrd er;
  41           }
  42  
  43           /* *
  44            *  @param o
  45            *              The Abst ractNamedA ctiveSorte dLookup to  which we  are compar ing
  46            *              ourself
  47            *  @return I f the spec ified obje ct is null , returns  -1. If the  specified
  48            *          o bject is e qual() to  this objec t, return  0. Otherwi se, return s 1
  49            *          i f this obj ect's sort  order is  greater th an the spe cified
  50            *          A bstractNam edActiveSo rtedLookup 's sort or der, and - 1 otherwis e.
  51            * /
  52           pu blic int c ompareTo(A bstractNam edActiveSo rtedLookup  o) {
  53                    if ( o == null)
  54                             return  -1;
  55                    if ( equals(o))
  56                             return  0;
  57                    retu rn new Com pareToBuil der().appe nd(getSort Order(), o .getSortOr der()).toC omparison( ) > 0 ? 1
  58                                      : -1;
  59           }
  60   }