| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected