public void addPair(E element, Integer second) {
      if (mFirstList.size() == mMaxCapacity) {
        mFirstList.remove(0);
        mSecondList.remove(0);
      }
      mFirstList.add(element);
      mSecondList.add(second);
    }
When adding a new element, and the array size exceeds the mMaxCapccity, we remove the eldest
element and only then add the new element.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/cache/AbstractAdaptiveCountingMemoryCache.java