Beispiel #1
0
 public final void recycleUpdateOp(UpdateOp paramUpdateOp)
 {
   if (!this.mDisableRecycler)
   {
     paramUpdateOp.payload = null;
     this.mUpdateOpPool.release(paramUpdateOp);
   }
 }
Beispiel #2
0
 public final UpdateOp obtainUpdateOp(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
 {
   UpdateOp localUpdateOp = (UpdateOp)this.mUpdateOpPool.acquire();
   if (localUpdateOp == null) {
     return new UpdateOp(paramInt1, paramInt2, paramInt3, paramObject);
   }
   localUpdateOp.cmd = paramInt1;
   localUpdateOp.positionStart = paramInt2;
   localUpdateOp.itemCount = paramInt3;
   localUpdateOp.payload = paramObject;
   return localUpdateOp;
 }