/guava/android/guava/src/com/google/common/collect/TopKSelector.java
threshold = elem; buffer[0] = elem;
buffer[0] = elem; threshold = elem;
this.threshold = null; } public void offer(@ParametricNullness T elem) { if (k == 0) { return; } else if (bufferSize == 0) { <extra_id_0> bufferSize = 1; } else if (bufferSize < k) { buffer[bufferSize++] = elem; if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) > 0) { threshold = elem; }