public int size() {
    return size;
  }
Gets the number of items in the queue. This returns in constant time.

@return number of elements in the queue
imagepipeline-base-test/src/main/java/com/facebook/imagepipeline/testing/DeltaQueue.java