
com.avos.avoscloud.AVObjectReferenceCount Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leancloud-common Show documentation
Show all versions of leancloud-common Show documentation
leancloud java sdk common library
The newest version!
package com.avos.avoscloud;
import java.util.concurrent.atomic.AtomicInteger;
public class AVObjectReferenceCount {
AVObject value;
AtomicInteger count;
public AVObjectReferenceCount(AVObject o) {
this.value = o;
count = new AtomicInteger(1);
}
public int increment() {
return count.incrementAndGet();
}
public int desc() {
return count.decrementAndGet();
}
public int getCount() {
return count.get();
}
public AVObject getValue() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy