List of utility methods to do Collection Min
T | min(Collection extends T> coll) min return Collections.min(coll);
|
Double | min(Collection min return Collections.min(data);
|
double | min(Collection min if (doubles.size() < 1) throw new IllegalArgumentException("No items in list"); Double min = Double.MAX_VALUE; for (Double doubleVal : doubles) { if (doubleVal < min) min = doubleVal; return min; ... |
Double | min(Collection min List<Double> filteredValues = filterNulls(values); if (filteredValues.size() == 0) return null; return Collections.min(filteredValues); |
int | min(Collection Find the smallest integer in a collection. int i = Integer.MAX_VALUE; for (int z : a) i = Math.min(z, i); return i; |
Number | min(Collection min Number min = list.iterator().next(); for (Number item : list) { if (item.floatValue() < min.floatValue()) { min = item; return min; |
String | min(Collection min String min = null; for (String s : strs) { if (min == null || min.compareTo(s) > 0) min = s; return min; |
Collection | min(Collection Return a Collection of all lowest-valued T . if (col == null || col.isEmpty()) return null; Collection<T> result = sizedArrayList(col.size()); Iterator<T> it = col.iterator(); T min = it.next(); result.add(min); while (it.hasNext()) { T next = it.next(); ... |
T | min(Collection min T min = null; for (T t : elems) { if (min == null || min.compareTo(t) > 0) { min = t; return min; |
T | min(Collection Returns the minimum of the given values. T min = null; for (T value : values) { if (min == null) { min = value; continue; @SuppressWarnings("unchecked") Comparable<T> comparable = (Comparable<T>) value; ... |