Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 256 for Account (0.14 sec)

  1. guava-tests/test/com/google/common/math/PairedStatsTest.java

     */
    public class PairedStatsTest extends TestCase {
    
      public void testCount() {
        assertThat(EMPTY_PAIRED_STATS.count()).isEqualTo(0);
        assertThat(ONE_VALUE_PAIRED_STATS.count()).isEqualTo(1);
        assertThat(TWO_VALUES_PAIRED_STATS.count()).isEqualTo(2);
        assertThat(MANY_VALUES_PAIRED_STATS.count()).isEqualTo(MANY_VALUES_COUNT);
      }
    
      public void testXStats() {
        assertStatsApproxEqual(EMPTY_STATS_ITERABLE, EMPTY_PAIRED_STATS.xStats());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

     */
    public class PairedStatsTest extends TestCase {
    
      public void testCount() {
        assertThat(EMPTY_PAIRED_STATS.count()).isEqualTo(0);
        assertThat(ONE_VALUE_PAIRED_STATS.count()).isEqualTo(1);
        assertThat(TWO_VALUES_PAIRED_STATS.count()).isEqualTo(2);
        assertThat(MANY_VALUES_PAIRED_STATS.count()).isEqualTo(MANY_VALUES_COUNT);
      }
    
      public void testXStats() {
        assertStatsApproxEqual(EMPTY_STATS_ITERABLE, EMPTY_PAIRED_STATS.xStats());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/Utf8Test.java

      // 128
      private static final long EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT =
          ONE_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      // 1920 [chars 0x0080 to 0x07FF]
      private static final long TWO_BYTE_ROUNDTRIPPABLE_CHARACTERS = 0x07FF - 0x0080 + 1;
    
      // 18,304
      private static final long EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT =
          // Both bytes are one byte characters
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMultiset.java

         * desired count.
         *
         * @param element the element to add or remove occurrences of
         * @param count the desired count of the element in this multiset
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code element} is null
         * @throws IllegalArgumentException if {@code count} is negative
         */
        @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

          ensureRoomFor(values.length());
          System.arraycopy(values.array, values.start, array, count, values.length());
          count += values.length();
          return this;
        }
    
        private void ensureRoomFor(int numberToAdd) {
          int newCount = count + numberToAdd; // TODO(kevinb): check overflow now?
          if (newCount > array.length) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

          ensureRoomFor(values.length());
          System.arraycopy(values.array, values.start, array, count, values.length());
          count += values.length();
          return this;
        }
    
        private void ensureRoomFor(int numberToAdd) {
          int newCount = count + numberToAdd; // TODO(kevinb): check overflow now?
          if (newCount > array.length) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/HashMultisetTest.java

        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
      }
    
      public void testCreateWithSize() {
        Multiset<String> multiset = HashMultiset.create(50);
        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
      }
    
      public void testCreateFromIterable() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

            counters.add(listener);
            assertEquals(expected.count(listener), counters.count(listener));
          }
    
          @Override
          public String toString() {
            return "incrementing";
          }
        };
      }
    
      private static <T> ImmutableMultiset<T> multiset(T value, int count) {
        return multiset(ImmutableMap.of(value, count));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

        public boolean setCount(T element, int oldCount, int newCount) {
          return standardSetCount(element, oldCount, newCount);
        }
    
        @Override
        public int setCount(T element, int count) {
          return standardSetCount(element, count);
        }
    
        @Override
        public Set<T> elementSet() {
          return new StandardElementSet();
        }
    
        @Override
        public Iterator<T> iterator() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  10. 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)
Back to top