MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / max

Method max

src/main/java/com/volmit/adapt/util/M.java:264–275  ·  view source on GitHub ↗

Biggest number @param doubles the numbers @return the biggest one

(T... doubles)

Source from the content-addressed store, hash-verified

262 * @return the biggest one
263 */
264 @SuppressWarnings("unchecked")
265 public static <T extends Number> T max(T... doubles) {
266 double max = Double.MIN_VALUE;
267
268 for (T i : doubles) {
269 if (i.doubleValue() > max) {
270 max = i.doubleValue();
271 }
272 }
273
274 return (T) Double.valueOf(max);
275 }
276
277 /**
278 * Smallest number

Callers 15

resetExtremesMethod · 0.95
putMethod · 0.95
resetExtremesMethod · 0.95
putMethod · 0.95
onMethod · 0.80
fitsMethod · 0.80
updateHeatMethod · 0.80
onTickMethod · 0.80
distanceLinfMethod · 0.80
distanceLinfMethod · 0.80
clipMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected