On this page:
http://backendless.com/documentation/utilities/android/ut_atomic_counters_api_android.htm
Under the follow sections there’s a couple of small mistakes:
- Section “Decrement by 1, return previous” has 2 issues:
(1)
synchronous methods IAtomic approach
public T counter.getAndIncrement();
I think should be counter.getAndDecrement();
(2) All of Example should be getAndIncrement I think.
- Section “Decrement by 1、 return current” has the following mistake:
asynchronous methods Backendless.Counters approach
public <T> T Backendless.Counters.incrementAndGet( String counterName, AsyncCallback<T> callback );
should be decrementAndGet I think.