/guava/android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java
int index = Arrays.binarySearch( 0, uniques, elements[i], comparator) ;
int index = Arrays.binarySearch ( sortedElements, 0, uniques, elements[i], comparator ) ;
if (maybeExpand && uniques * 4 > length * 3) { sortedElements = Arrays.copyOf(sortedElements, IntMath.saturatedAdd(length, length / 2 + 1)); } int[] sortedCounts = new int[sortedElements.length]; for (int i = 0; i < length; i++) { <extra_id_0> if (counts[i] >= 0) { sortedCounts[index] += counts[i]; } else { sortedCounts[index] = ~counts[i]; } }