question: public boolean checkEntry ( int i , String roadName , String roadNumber , String consistNumber , String loco1Address , String loco2Address , String loco3Address , String loco4Address , String loco5Address , String loco6Address , String id ) { NceConsistRosterEntry r = _list . get ( i ) ; if ( id != null && ! id . equals ( r . getId ( ) ) ) { return false ; } if ( roadName != null && ! roadName . equals ( r . getRoadName ( ) ) ) { return false ; } if ( roadNumber != null && ! roadNumber . equals ( r . getRoadNumber ( ) ) ) { return false ; } if ( consistNumber != null && ! consistNumber . equals ( r . getConsistNumber ( ) ) ) { return false ; } if ( loco1Address != null && ! loco1Address . equals ( r . getLoco1DccAddress ( ) ) ) { return false ; } if ( loco2Address != null && ! loco2Address . equals ( r . getLoco2DccAddress ( ) ) ) { return false ; } if ( loco3Address != null && ! loco3Address . equals ( r . getLoco3DccAddress ( ) ) ) { return false ; } if ( loco4Address != null && ! loco4Address . equals ( r . getLoco4DccAddress ( ) ) ) { return false ; } if ( loco5Address != null && ! loco5Address . equals ( r . getLoco5DccAddress ( ) ) ) { return false ; } if ( loco6Address != null && ! loco6Address . equals ( r . getLoco6DccAddress ( ) ) ) { return false ; } return true ; }
target:  Check if an entry consistent with specific properties. A null String entry always matches. Strings are used for convenience in GUI building.