@Override public boolean post(long v2, long v3, long v4) throws ValueNotFoundException { boolean isConditionMet = false; float f1v3 = fileAccessSerivce.findValue(FILE.F1, v3); float value = f1v3 + v2; if (f1v3 < TEN) { value += TEN; isConditionMet = true; } fileAccessSerivce.putValue(FILE.F2, v4, value); return isConditionMet; }
@Override public float get(long v1) throws ValueNotFoundException { float v = fileAccessSerivce.findValue(FILE.F2, v1); return v > TEN ? v - TEN : v; }