code: @Override
      public boolean contains(DelayedEntry entry) {
          Data key = (Data) entry.getKey();
          return index.containsKey(key);
      }
docs: Checks whether an item exist in queue or not.
  
  @param entry item to be checked
  @return <code>true</code> if exists, <code>false</code> otherwise