Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for old (0.13 sec)

  1. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      @BeforeExperiment
      protected void setUp() {
        BitSet bitSet = new BitSet();
        for (int i = 0; i < OLD_WHITESPACE_TABLE.length(); i++) {
          bitSet.set(OLD_WHITESPACE_TABLE.charAt(i));
        }
        bitSet.clear(0);
        bitSet.clear(1);
        matcher = useNew ? CharMatcher.whitespace() : OLD_WHITESPACE;
        teststring = newTestString(new Random(1), bitSet, percentMatching);
      }
    
      @Benchmark
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java

        int originalCount = getMultiset().count(e0());
        assertEquals("old count", originalCount, getMultiset().add(e0(), 0));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddOccurrences() {
        int originalCount = getMultiset().count(e0());
        assertEquals("old count", originalCount, getMultiset().add(e0(), 2));
        assertEquals("old count", originalCount + 2, getMultiset().count(e0()));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  3. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

        }
      }
    
      public void testBogusSystemPropertiesUsername() {
        if (isAndroid()) {
          /*
           * The test calls directly into the "ACL-based filesystem" code, which isn't available under
           * old versions of Android. Since Android doesn't use that code path, anyway, there's no need
           * to test it.
           */
          return;
        }
    
        /*
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      @BeforeExperiment
      protected void setUp() {
        BitSet bitSet = new BitSet();
        for (int i = 0; i < OLD_WHITESPACE_TABLE.length(); i++) {
          bitSet.set(OLD_WHITESPACE_TABLE.charAt(i));
        }
        bitSet.clear(0);
        bitSet.clear(1);
        matcher = useNew ? CharMatcher.whitespace() : OLD_WHITESPACE;
        teststring = newTestString(new Random(1), bitSet, percentMatching);
      }
    
      @Benchmark
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

          limiter.acquire(); // #3
        }
    
        limiter.setRate(4.0); // double the rate!
        limiter.acquire(); // #4, we repay the debt of the last acquire (imposed by the old rate)
        for (int i = 0; i < 4; i++) {
          limiter.acquire(); // #5
        }
        stopwatch.sleepMillis(4250); // #6, back to cold state (warmup period + repay last acquire)
        for (int i = 0; i < 11; i++) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

                list.execute();
              }
    
              @Override
              public Object getImpl() {
                return list;
              }
            };
          }
        },
        OLD {
          @Override
          ExecutionListWrapper newExecutionList() {
            return new ExecutionListWrapper() {
              final OldExecutionList list = new OldExecutionList();
    
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K 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-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java

      public void testSetValue_valueAbsent() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          if (entry.getKey().equals(k0())) {
            assertEquals("entry.setValue() should return the old value", v0(), entry.setValue(v3()));
          }
        }
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(SEVERAL)
      public void testSetValue_valuePresent() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableMapValues.java

      @Override
      @J2ktIncompatible // serialization
      @GwtIncompatible // serialization
      Object writeReplace() {
        return super.writeReplace();
      }
    
      // No longer used for new writes, but kept so that old data can still be read.
      @GwtIncompatible // serialization
      @J2ktIncompatible
      @SuppressWarnings("unused")
      private static class SerializedForm<V> implements Serializable {
        final ImmutableMap<?, V> map;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3.6K bytes
    - Viewed (0)
Back to top