public synchronized long decrement() { long current = getValue(); if (current <= minBound) { return current; } return super.decrement(); }
public synchronized long increment() { long current = getValue(); if (current >= maxBound) { return current; } return super.increment(); }
public synchronized long increment() { long current = getValue(); if (current >= maxBound) { return current; } return super.increment(); }
public synchronized long decrement() { long current = getValue(); if (current <= minBound) { return current; } return super.decrement(); }
public synchronized long decrement() { long current = getValue(); if (current <= minBound) { return current; } return super.decrement(); }
public synchronized long increment() { long current = getValue(); if (current >= maxBound) { return current; } return super.increment(); }
public synchronized long increment(long amount) { long current = getValue(); if (current + amount >= maxBound) { super.setValue(maxBound); return maxBound; } return super.increment(amount); }
public synchronized long decrement(long amount) { long current = getValue(); if (current - amount <= minBound) { super.setValue(minBound); return minBound; } return super.decrement(amount); }
public synchronized long decrement(long amount) { long current = getValue(); if (current - amount <= minBound) { super.setValue(minBound); return minBound; } return super.decrement(amount); }
public synchronized long decrement(long amount) { long current = getValue(); if (current - amount <= minBound) { super.setValue(minBound); return minBound; } return super.decrement(amount); }
public synchronized long increment(long amount) { long current = getValue(); if (current + amount >= maxBound) { super.setValue(maxBound); return maxBound; } return super.increment(amount); }
public synchronized long increment(long amount) { long current = getValue(); if (current + amount >= maxBound) { super.setValue(maxBound); return maxBound; } return super.increment(amount); }