static public void normalize ( EnsCoord result , List < EnsCoord > ecList ) { List < EnsCoord > extra = new ArrayList <> ( ) ; for ( EnsCoord ec : ecList ) { if ( ! result . equalsData ( ec ) ) { // differences can only be greater extra . add ( ec ) ; } } if ( extra . size ( ) == 0 ) return ; for ( EnsCoord ec : extra ) { if ( ec . getNEnsembles ( ) < result . getNEnsembles ( ) ) continue ; result = ec ; } }
Extend result with all the values in the list of EnsCoord