MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / Mul

Class Mul

src/main/java/gregapi/code/IMath.java:89–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 public static class Mul<O> implements IMath<O> {
90 private final IMath<O>[] mValues;
91 @SafeVarargs
92 public Mul(IMath<O>... aValues) {mValues = aValues;}
93
94 @Override
95 public long getLong(O aObject) {
96 long rValue = 0;
97 for (IMath<O> tValue : mValues) rValue *= tValue.getLong(aObject);
98 return rValue;
99 }
100
101 @Override
102 public double getDouble(O aObject) {
103 double rValue = 0;
104 for (IMath<O> tValue : mValues) rValue *= tValue.getDouble(aObject);
105 return rValue;
106 }
107 }
108}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected