public void merge ( GridConfiguration other ) { if ( other == null ) { return ; } super . merge ( other ) ; if ( isMergeAble ( Integer . class , other . cleanUpCycle , cleanUpCycle ) ) { cleanUpCycle = other . cleanUpCycle ; } if ( isMergeAble ( Map . class , other . custom , custom ) ) { if ( custom == null ) { custom = new HashMap <> ( ) ; } custom . putAll ( other . custom ) ; } if ( isMergeAble ( Integer . class , other . maxSession , maxSession ) && other . maxSession > 0 ) { maxSession = other . maxSession ; } if ( isMergeAble ( List . class , other . servlets , servlets ) ) { servlets = other . servlets ; } if ( isMergeAble ( List . class , other . withoutServlets , withoutServlets ) ) { withoutServlets = other . withoutServlets ; } }
replaces this instance of configuration value with the other value if it s set .