HomeSort by relevance Sort by last modified time
    Searched refs:occurrences (Results 1 - 15 of 15) sorted by null

  /external/guava/src/com/google/common/collect/
ConcurrentHashMultiset.java 55 /** The number of occurrences of each element. */
111 * Returns the number of occurrences of {@code element} in this multiset.
114 * @return the nonnegative number of occurrences of the element
172 * Adds a number of occurrences of the specified element to this multiset.
175 * @param occurrences the number of occurrences to add
178 * @throws IllegalArgumentException if {@code occurrences} is negative, or if
181 @Override public int add(E element, int occurrences) {
182 if (occurrences == 0) {
185 checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences)
    [all...]
ForwardingMultiset.java 45 public int add(E element, int occurrences) {
46 return delegate().add(element, occurrences);
49 public int remove(Object element, int occurrences) {
50 return delegate().remove(element, occurrences);
AbstractMapBasedMultiset.java 237 * {@link Integer#MAX_VALUE} occurrences of {@code element} in this
240 @Override public int add(@Nullable E element, int occurrences) {
241 if (occurrences == 0) {
245 occurrences > 0, "occurrences cannot be negative: %s", occurrences);
250 backingMap.put(element, new AtomicInteger(occurrences));
253 long newCount = (long) oldCount + (long) occurrences;
255 "too many occurrences: %s", newCount);
256 frequency.getAndAdd(occurrences);
    [all...]
Multiset.java 35 * element equivalence", below) are referred to as <i>occurrences</i> of the
36 * same single element. The total number of occurrences of an element in a
40 * more than {@link Integer#MAX_VALUE} occurrences of any one element.
46 * or remove multiple occurrences of an element at once, or to set the count of
81 * Returns the number of occurrences of an element in this multiset (the
90 * @param element the element to count occurrences of
91 * @return the number of occurrences of the element in this multiset; possibly
99 * Adds a number of occurrences of an element to this multiset. Note that if
100 * {@code occurrences == 1}, this method has the identical effect to {@link
103 * occurrences))}, which would presumably perform much more poorly
    [all...]
Multisets.java 120 @Override public int remove(Object element, int occurrences) {
205 public int add(E element, int occurrences) {
209 public int remove(Object element, int occurrences) {
210 if (occurrences == 0) {
213 checkArgument(occurrences > 0);
330 * element set of {@code multiset1}, with repeated occurrences of the same
ImmutableMultiset.java 209 public int add(E element, int occurrences) {
218 public int remove(Object element, int occurrences) {
417 * Adds a number of occurrences of an element to this {@code
421 * @param occurrences the number of occurrences of the element to add. May
425 * @throws IllegalArgumentException if {@code occurrences} is negative, or
427 * occurrences of the element
429 public Builder<E> addCopies(E element, int occurrences) {
430 contents.add(checkNotNull(element), occurrences);
435 * Adds or removes the necessary occurrences of an element such that th
    [all...]
AbstractMultiset.java 136 public int add(E element, int occurrences) {
144 public int remove(Object element, int occurrences) {
AbstractMultimap.java 950 @Override public int remove(Object key, int occurrences) {
951 if (occurrences == 0) {
954 checkArgument(occurrences > 0);
970 if (occurrences >= count) {
975 for (int i = 0; i < occurrences; i++) {
979 totalSize -= occurrences;
    [all...]
LinkedListMultimap.java 635 public int add(@Nullable K key, int occurrences) {
639 public int remove(@Nullable Object key, int occurrences) {
640 checkArgument(occurrences >= 0);
643 while ((occurrences-- > 0) && values.hasNext()) {
  /external/icu4c/test/intltest/
ustrtest.cpp 715 uint16_t occurrences = 0; local
719 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0)
721 if (occurrences != 6)
722 errln("indexOf failed: expected to find 6 occurrences, found " + occurrences);
724 for ( occurrences = 0, startPos = 10;
726 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0)
728 if (occurrences != 4)
729 errln("indexOf with starting offset failed: expected to find 4 occurrences, found " + occurrences);
    [all...]
  /build/tools/droiddoc/templates-pdk/assets/
search_autocomplete.js 181 // helper function that counts the occurrences of a given character in
  /build/tools/droiddoc/templates-sdk/assets/
search_autocomplete.js 181 // helper function that counts the occurrences of a given character in
  /external/doclava/res/assets/templates/assets/
search_autocomplete.js 181 // helper function that counts the occurrences of a given character in
  /packages/apps/Exchange/src/com/android/exchange/utility/
CalendarUtilities.java     [all...]
  /packages/apps/Exchange/src/com/android/exchange/adapter/
CalendarSyncAdapter.java 771 int occurrences = -1; local
    [all...]

Completed in 414 milliseconds