private static QualityIndicator < List < PointSolution > , Double > getIndicatorFromName ( String name , List < QualityIndicator < List < PointSolution > , Double > > list ) { QualityIndicator < List < PointSolution > , Double > result = null ; for ( QualityIndicator < List < PointSolution > , Double > indicator : list ) { if ( indicator . getName ( ) . equals ( name ) ) { result = indicator ; } } if ( result == null ) { throw new JMetalException ( "Indicator " + name + " not available" ) ; } return result ; }
Given an indicator name finds the indicator in the list of indicator