Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 81 for Account (0.46 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

        int originalCount = getMultiset().count(e0());
        assertEquals("old count", originalCount, getMultiset().remove(e0(), 0));
        expectUnchanged();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemove_occurrences_present() {
        assertEquals(
            "multiset.remove(present, 2) didn't return the old count",
            1,
            getMultiset().remove(e0(), 2));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/LocalCache.java

                    setValue(e, key, value, now);
                    newCount = this.count; // count remains unchanged
                  } else {
                    setValue(e, key, value, now);
                    newCount = this.count + 1;
                  }
                  this.count = newCount; // write-volatile
                  evictEntries(e);
                  return null;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java

        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
      public void testCreateWithSize() {
        Multiset<String> multiset = LinkedHashMultiset.create(50);
        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      private static class CountingIterable implements Iterable<String> {
        int count = 0;
    
        @Override
        public Iterator<String> iterator() {
          count++;
          return asList("a", "b", "a").iterator();
        }
      }
    
      public void testCopyOf_plainIterable() {
        CountingIterable iterable = new CountingIterable();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 21K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MultisetsTest.java

        Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "b", "b"));
        Multiset<String> diff = Multisets.difference(ms1, ms2);
        assertThat(diff).contains("a");
        assertEquals(0, diff.count("b"));
        assertEquals(1, diff.count("a"));
        assertFalse(diff.contains("b"));
        assertTrue(diff.contains("a"));
      }
    
      public void testDifferenceEmptyNonempty() {
        Multiset<String> ms1 = HashMultiset.create();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  6. 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)
  7. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

            throw new RuntimeException("Unexpected interrupt while waiting for latch", ie);
          }
        } while (System.nanoTime() - deadline < 0);
        throw formatRuntimeException(
            "Latch failed to count down within %d second timeout", timeoutSeconds);
      }
    
      /**
       * Creates a garbage object that counts down the latch in its finalizer. Sequestered into a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Lists.java

       *
       * <p>This is useful when a varargs method needs to use a signature such as {@code (Foo firstFoo,
       * Foo... moreFoos)}, in order to avoid overload ambiguity or to enforce a minimum argument count.
       *
       * <p>The returned list is serializable and implements {@link RandomAccess}.
       *
       * @param first the first element
       * @param rest an array of additional elements, possibly empty
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

        CollectionSize.ANY,
        ALLOWS_NULL_VALUES,
        SUPPORTS_REMOVE,
        CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
        MultisetTestSuiteBuilder.NoRecurse.NO_ENTRY_SET, // Cannot create entries with count > 1
      };
    
      static final Supplier<TreeSet<String>> STRING_TREESET_FACTORY =
          new Supplier<TreeSet<String>>() {
            @Override
            public TreeSet<String> get() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        private int count;
        private final AsyncFunction<X, V> delegate;
    
        public AsyncFunctionSpy(AsyncFunction<X, V> delegate) {
          this.delegate = delegate;
        }
    
        @Override
        public final ListenableFuture<V> apply(X t) throws Exception {
          count++;
          return delegate.apply(t);
        }
    
        void verifyCallCount(int expected) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top