예제 #1
0
 boolean remove(int i)
 {
     boolean flag1;
     if (i >= 64)
     {
         ensureNext();
         flag1 = next.remove(i - 64);
     } else
     {
         long l = 1L << i;
         boolean flag;
         if ((mData & l) != 0L)
         {
             flag = true;
         } else
         {
             flag = false;
         }
         mData = mData & (-1L ^ l);
         l--;
         mData = mData & l | Long.rotateRight(mData & (-1L ^ l), 1);
         flag1 = flag;
         if (next != null)
         {
             if (next.get(0))
             {
                 set(63);
             }
             next.remove(0);
             return flag;
         }
     }
     return flag1;
 }
예제 #2
0
  private void handleDeleteObject(HttpExchange exchange, String bucketName, String keyName)
      throws IOException {
    readRequestBodyFully(exchange);

    if (buckets.containsKey(bucketName)) {
      Bucket bucket = buckets.get(bucketName);
      bucket.remove(keyName);
    }
    respondAndClose(exchange, HttpURLConnection.HTTP_NO_CONTENT);
  }