Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Account (0.23 sec)

  1. android/guava/src/com/google/common/collect/Iterators.java

            @SuppressWarnings("unchecked") // we only put Ts in it
            @Nullable
            T[] array = (@Nullable T[]) new Object[size];
            int count = 0;
            for (; count < size && iterator.hasNext(); count++) {
              array[count] = iterator.next();
            }
            for (int i = count; i < size; i++) {
              array[i] = null; // for GWT
            }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        final AtomicInteger count = new AtomicInteger();
        final Exception e = new IllegalStateException("exception to trigger failure on first load()");
        CacheLoader<Integer, String> failOnceFunction =
            new CacheLoader<Integer, String>() {
    
              @Override
              public String load(Integer key) throws Exception {
                if (count.getAndIncrement() == 0) {
                  throw e;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/CharMatcher.java

       */
      public int countIn(CharSequence sequence) {
        int count = 0;
        for (int i = 0; i < sequence.length(); i++) {
          if (matches(sequence.charAt(i))) {
            count++;
          }
        }
        return count;
      }
    
      /**
       * Returns a string containing all non-matching characters of a character sequence, in order. For
       * example:
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        final AtomicInteger count = new AtomicInteger();
        final Exception e = new IllegalStateException("exception to trigger failure on first load()");
        CacheLoader<Integer, String> failOnceFunction =
            new CacheLoader<Integer, String>() {
    
              @Override
              public String load(Integer key) throws Exception {
                if (count.getAndIncrement() == 0) {
                  throw e;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

          Suppliers.ofInstance(
              new StatsCounter() {
                @Override
                public void recordHits(int count) {}
    
                @Override
                public void recordMisses(int count) {}
    
                @SuppressWarnings("GoodTime") // b/122668874
                @Override
                public void recordLoadSuccess(long loadTime) {}
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multimaps.java

        }
    
        @Override
        public Iterator<K> iterator() {
          return Maps.keyIterator(multimap.entries().iterator());
        }
    
        @Override
        public int count(@CheckForNull Object element) {
          Collection<V> values = Maps.safeGet(multimap.asMap(), element);
          return (values == null) ? 0 : values.size();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Synchronized.java

        }
    
        @Override
        Multiset<E> delegate() {
          return (Multiset<E>) super.delegate();
        }
    
        @Override
        public int count(@CheckForNull Object o) {
          synchronized (mutex) {
            return delegate().count(o);
          }
        }
    
        @Override
        public int add(@ParametricNullness E e, int n) {
          synchronized (mutex) {
            return delegate().add(e, n);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

                V entryValue = e.getValue();
    
                if (entryValue == null) {
                  ++modCount;
                  setValue(e, value);
                  newCount = this.count; // count remains unchanged
                  this.count = newCount; // write-volatile
                  return null;
                } else if (onlyIfAbsent) {
                  // Mimic
                  // "if (!map.containsKey(key)) ...
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/CharMatcher.java

       */
      public int countIn(CharSequence sequence) {
        int count = 0;
        for (int i = 0; i < sequence.length(); i++) {
          if (matches(sequence.charAt(i))) {
            count++;
          }
        }
        return count;
      }
    
      /**
       * Returns a string containing all non-matching characters of a character sequence, in order. For
       * example:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Iterators.java

            @SuppressWarnings("unchecked") // we only put Ts in it
            @Nullable
            T[] array = (@Nullable T[]) new Object[size];
            int count = 0;
            for (; count < size && iterator.hasNext(); count++) {
              array[count] = iterator.next();
            }
            for (int i = count; i < size; i++) {
              array[i] = null; // for GWT
            }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
Back to top