@@ -0,0 +1,406 @@
+package com.tvd12.ezyfox.util;%0A%0Apublic class EzyRef%3CT%3E %7B%0A%0A%09protected final T value;%0A%09protected volatile int referenceCount;%0A%09%0A%09public EzyRef(T value) %7B%0A%09%09this.value = value;%0A%09%7D%0A%09%0A%09public T get() %7B%0A%09%09return value;%0A%09%7D%0A%09%0A%09public void retain() %7B%0A%09%09++ this.referenceCount;%0A%09%7D%0A%09%0A%09public void release() %7B%0A%09%09-- this.referenceCount;%0A%09%7D%0A%09%0A%09public boolean isReleasable() %7B%0A%09%09return this.referenceCount == 0;%0A%09%7D%0A%09%0A%09%0A%7D%0A

add Ref