public static <T extends Comparable<T>>Pair<Integer,T> max(T[] array){
  return max(asList(array));
}

public static < T extends Comparable < T > > Pair < Integer , T > max ( T [ ] array ) { return max ( asList ( array ) ) ; }
find the argmax and max in a array of elements that can are ordered . if the list is empty , the function returns ( - 1 , null ) .
