public static < T > T max ( Iterable < T > items ) { T answer = null ; for ( T value : items ) { if ( value != null ) { if ( answer == null || ScriptBytecodeAdapter . compareGreaterThan ( value , answer ) ) { answer = value ; } } } return answer ; }
Selects the maximum value found in an Iterable .