MCPcopy Create free account
hub / github.com/Card-Forge/forge / min

Method min

forge-core/src/main/java/forge/util/Aggregates.java:39–49  ·  view source on GitHub ↗
(final Iterable<T> source, final Function<T, Integer> valueAccessor)

Source from the content-addressed store, hash-verified

37 }
38
39 public static final <T> Integer min(final Iterable<T> source, final Function<T, Integer> valueAccessor) {
40 if (source == null) { return null; }
41 int max = Integer.MAX_VALUE;
42 for (final T c : source) {
43 int value = valueAccessor.apply(c);
44 if (value < max) {
45 max = value;
46 }
47 }
48 return max;
49 }
50
51 public static Integer min(final Iterable<Integer> source) {
52 if (source == null) return null;

Callers 15

minMethod · 0.95
doAristocratLogicMethod · 0.95
checkApiLogicMethod · 0.95
getBestUniquePrintMethod · 0.45
addBasicLandMethod · 0.45
encodeLinesMethod · 0.45
removeCounterMethod · 0.45

Calls 1

applyMethod · 0.65

Tested by

no test coverage detected