3239. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:49:59 PM 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.

3239.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:49:59 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-common\src\main\java\gov\va\nvap\common\validation NullChecker.java Fri Apr 21 20:03:26 2017 UTC

3239.2 Comparison summary

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

3239.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

3239.4 Active regular expressions

No regular expressions were active.

3239.5 Comparison detail

        1   package go v.va.nvap. common.val idation;
        2  
        3   import jav a.util.Col lection;
        4  
        5   /**
        6    * Validat ion Checks .
        7    * 
        8    * @author  Asha Amri traj
        9    */
        10   public cla ss NullChe cker {
        11  
        12           pu blic stati c boolean  hasEmpty(f inal Objec t... objec ts) {
        13                    if ( objects ==  null) {
        14                             return  true;
        15                    }
        16  
        17                    for  (final Obj ect object  : objects ) {
        18                             if (Nu llChecker. isEmpty(ob ject)) {
        19                                      return t rue;
        20                             }
        21                    }
        22                    retu rn false;
        23           }
        24  
        25           pu blic stati c boolean  isEmpty(fi nal Object  object) {
        26                    if ( object ==  null) {
        27                             return  true;
        28                    } el se if (Str ing.class. isInstance (object))  {
        29                             return  ((String)  object).l ength() <=  0;
        30                    } el se if (Str ingBuffer. class.isIn stance(obj ect)) {
        31                             return  ((StringB uffer) obj ect).lengt h() <= 0;
        32                    } el se if (Col lection.cl ass.isInst ance(objec t)) {
        33                             return  ((Collect ion<?>) ob ject).isEm pty();
        34                    }
        35                    retu rn false;
        36           }
        37  
        38           pu blic stati c boolean  isInstance (final Obj ect object , final Cl ass<?> cla zz) {
        39                    Asse rt.assertN otEmpty(cl azz, "Clas s cannot b e empty!") ;
        40                    retu rn clazz.i sInstance( object);
        41           }
        42  
        43           pu blic stati c boolean  isNotEmpty (final Obj ect object ) {
        44                    retu rn !NullCh ecker.isEm pty(object );
        45           }
        46  
        47           /* *
        48            *  Checks wh ether the  object is  null or em pty.
        49            *  
        50            *  @param ob ject
        51            *  @return
        52            * /
        53           pu blic stati c boolean  isNullOrEm pty(final  Object obj ect) {
        54                    retu rn NullChe cker.isEmp ty(object) ;
        55           }
        56  
        57           pr otected Nu llChecker( ) {
        58           }
        59   }