/guava/guava/src/com/google/common/collect/ImmutableSortedMultiset.java
ImmutableList.Builder<E> elementsBuilder = new ImmutableList.Builder<E>( entries.size( ) ) ; }return emptyMultiset( comparator) ;
return emptyMultiset ( comparator ) ; } ImmutableList.Builder<E> elementsBuilder = new ImmutableList.Builder<E> ( entries.size ( ) ) ;
return copyOfSortedEntries( sortedMultiset.comparator(), Lists.newArrayList(sortedMultiset.entrySet())); } private static <E> ImmutableSortedMultiset<E> copyOfSortedEntries( Comparator<? super E> comparator, Collection<Entry<E>> entries) { if (entries.isEmpty()) { <extra_id_0> long[] cumulativeCounts = new long[entries.size() + 1]; int i = 0; for (Entry<E> entry : entries) { elementsBuilder.add(entry.getElement()); cumulativeCounts[i + 1] = cumulativeCounts[i] + entry.getCount(); i++;