MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / min

Method min

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

Smallest number @param doubles the numbers @return the smallest one

(T... doubles)

Source from the content-addressed store, hash-verified

281 * @return the smallest one
282 */
283 @SuppressWarnings("unchecked")
284 public static <T extends Number> T min(T... doubles) {
285 double min = Double.MAX_VALUE;
286
287 for (T i : doubles) {
288 if (i.doubleValue() < min) {
289 min = i.doubleValue();
290 }
291 }
292
293 return (T) Double.valueOf(min);
294 }
295
296 /**
297 * Evaluates an expression using javascript engine and returns the double

Callers 15

resetExtremesMethod · 0.95
putMethod · 0.95
scrollMethod · 0.95
resetExtremesMethod · 0.95
putMethod · 0.95
withXPMethod · 0.80
getDiffMethod · 0.80
setAdaptationMethod · 0.80
loggedInMethod · 0.80
getValueMethod · 0.80
seeEnchantMethod · 0.80
getValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected