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

Class Val

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

Source from the content-addressed store, hash-verified

43 // Utility Classes for adding relations between Numbers.
44
45 public static class Val<O> implements IMath<O> {
46 private final long mValueLong;
47 private final double mValueDouble;
48 public Val(long aValue) {mValueLong = aValue; mValueDouble = aValue;}
49 public Val(double aValue) {mValueLong = (long)aValue; mValueDouble = aValue;}
50 @Override public long getLong(O aObject) {return mValueLong;}
51 @Override public double getDouble(O aObject) {return mValueDouble;}
52 }
53
54 public static class Neg<O> implements IMath<O> {
55 private final IMath<O> mValue;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected