public void remove(Collection<T> elementsToRemove) {
    Iterator<TimestampedValue<T>> iterator = this.elements.iterator();
    while (iterator.hasNext()) {
      TimestampedValue<T> value = iterator.next();
      if (elementsToRemove.contains(value.getValue())) {
        iterator.remove();
      }
    }
  }
Removes the given elements from the list-gauge.
@param elementsToRemove collection of elements to remove.
samza-core/src/main/scala/org/apache/samza/diagnostics/BoundedList.java