예제 #1
0
 public ListPow2(RefCounter32 acyc, int pointer) {
   acyc.oneMoreRefFromOutside(pointer);
   this.acyc = acyc;
   this.pointer = pointer;
   // takes log time of list size
   size = XobUtil.sizeOfListOfPowerOf2Items(acyc, pointer);
 }
예제 #2
0
 /**
  * a slow function in java, but the only other way is for the users of this list to do it, and
  * since its used as a normal java.util.List, they probably wont know to do that.
  */
 protected void finalize() throws Throwable {
   acyc.oneLessRefFromOutside(pointer);
   super.finalize();
 }