Java Utililty Methods List Min

List of utility methods to do List Min

Description

The list of methods to do List Min are organized into topic(s).

Method

Doublemin(final List aList, final Double aDefalut)
min
Double min = aDefalut;
if (null != aList) {
    for (Double value : aList) {
        if (null != value) {
            if (null == min) {
                min = value;
            } else {
                min = Math.min(min, value);
...
doublemin(List values)
min
double min = Integer.MAX_VALUE;
for (Number value : values) {
    if (value.doubleValue() < min) {
        min = value.doubleValue();
return min;
Listmin(List a, List b)
min
if (a == null)
    return (List<T>) b;
if (b == null)
    return (List<T>) a;
List<T> result = new ArrayList<T>();
if (a.isEmpty() || b.isEmpty())
    return result;
Map<T, Integer> coeffs = new HashMap<T, Integer>();
...
booleanmin(List booleans)
Returns the min boolean in the booleans list.
for (boolean value : booleans) {
    if (!value) {
        return false;
return true;
doublemin(List data)
min
Collections.sort(data);
int n = data.size();
return data.get(0);
doublemin(List l)
min
double min = Double.MAX_VALUE;
for (Double d : l)
    if (d < min)
        min = d;
return min;
doublemin(List list)
min
Collections.sort(list);
return list.get(0);
floatmin(List values)
min
float min = values.get(0);
for (int i = 1; i < values.size(); i++) {
    min = Math.min(min, values.get(i));
return min;
Stringmin(List runtimeList)
min
long min = Long.MAX_VALUE;
for (long value : runtimeList) {
    min = Math.min(min, value);
return String.valueOf(min);
Numbermin(List numberList)
min
Number answer = null;
double answerValue = Double.MAX_VALUE;
for (Number number : numberList) {
    if (number.doubleValue() < answerValue) {
        answerValue = number.doubleValue();
        answer = number;
return answer;