- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for cumulativeCounts (0.07 seconds)
-
guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java
RegularImmutableSortedSet<E> elementSet, long[] cumulativeCounts, int offset, int length) { this.elementSet = elementSet; this.cumulativeCounts = cumulativeCounts; this.offset = offset; this.length = length; } private int getCount(int index) { return (int) (cumulativeCounts[offset + index + 1] - cumulativeCounts[offset + index]); } @Override Entry<E> getEntry(int index) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 4.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java
RegularImmutableSortedSet<E> elementSet, long[] cumulativeCounts, int offset, int length) { this.elementSet = elementSet; this.cumulativeCounts = cumulativeCounts; this.offset = offset; this.length = length; } private int getCount(int index) { return (int) (cumulativeCounts[offset + index + 1] - cumulativeCounts[offset + index]); } @Override Entry<E> getEntry(int index) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 4.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java
long[] cumulativeCounts = new long[length + 1]; for (int i = 0; i < length; i++) { cumulativeCounts[i + 1] = cumulativeCounts[i] + counts[i]; } forceCopyElements = true; return new RegularImmutableSortedMultiset<E>(elementSet, cumulativeCounts, 0, length); } } @J2ktIncompatible // serialization
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 35.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSortedMultiset.java
} ImmutableList.Builder<E> elementsBuilder = new ImmutableList.Builder<>(entries.size()); 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++; } return new RegularImmutableSortedMultiset<>(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 29.5K bytes - Click Count (0)