Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 65 for Account (0.17 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        assertThrows(NullPointerException.class, () -> ImmutableSortedMultiset.copyOf(iterator));
      }
    
      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 Feb 22 20:09:59 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        assertThrows(NullPointerException.class, () -> ImmutableSortedMultiset.copyOf(iterator));
      }
    
      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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

        Comparator<Object> valueComparator = (Comparator<Object>) stream.readObject();
        int keyCount = stream.readInt();
        if (keyCount < 0) {
          throw new InvalidObjectException("Invalid key count " + keyCount);
        }
        ImmutableMap.Builder<Object, ImmutableSet<Object>> builder = ImmutableMap.builder();
        int tmpSize = 0;
    
        for (int i = 0; i < keyCount; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

       *
       * <p><b>Java 8+ users:</b> In most cases, the {@code Stream} equivalent of this method is {@code
       * stream.filter(element::equals).count()}. If {@code element} might be null, use {@code
       * stream.filter(Predicate.isEqual(element)).count()} instead.
       *
       * @see java.util.Collections#frequency(Collection, Object) Collections.frequency(Collection,
       *     Object)
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * becomes {@code count}.
       *
       * @return the count of {@code element} in the multiset before this call
       * @throws IllegalArgumentException if {@code count} is negative
       */
      @CanIgnoreReturnValue
      @Override
      public int setCount(E element, int count) {
        checkNotNull(element);
        checkNonnegative(count, "count");
        while (true) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // no entry
        assertEquals(0, segment.count);
        assertNull(segment.remove(key, hash));
        assertEquals(0, segment.count);
    
        // same key
        table.set(index, entry);
        segment.count++;
        assertEquals(1, segment.count);
        assertSame(oldValue, segment.get(key, hash));
        assertSame(oldValue, segment.remove(key, hash));
        assertEquals(0, segment.count);
        assertNull(segment.get(key, hash));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // no entry
        assertEquals(0, segment.count);
        assertNull(segment.remove(key, hash));
        assertEquals(0, segment.count);
    
        // same key
        table.set(index, entry);
        segment.count++;
        assertEquals(1, segment.count);
        assertSame(oldValue, segment.get(key, hash));
        assertSame(oldValue, segment.remove(key, hash));
        assertEquals(0, segment.count);
        assertNull(segment.get(key, hash));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top