public abstract class RefCount<Type>
extends java.lang.Object
protected final Type resource
protected final java.util.concurrent.atomic.AtomicInteger refcount
public RefCount(Type resource)
public int getRefcount()
public final Type get()
public void decref()
protected abstract void close()
public int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.ObjectCopyright © 2016. All Rights Reserved.