Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 355 for changed (0.16 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/AbstractSetTester.java

    public class AbstractSetTester<E> extends AbstractCollectionTester<E> {
      /*
       * Previously we had a field named set that was initialized to the value of
       * collection in setUp(), but that caused problems when a tester changed the
       * value of set or collection but not both.
       */
      protected final Set<E> getSet() {
        return (Set<E>) collection;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 1.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Floats.java

          // extensive testing
          try {
            return Float.parseFloat(string);
          } catch (NumberFormatException e) {
            // Float.parseFloat has changed specs several times, so fall through
            // gracefully
          }
        }
        return null;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractSetTester.java

    public class AbstractSetTester<E> extends AbstractCollectionTester<E> {
      /*
       * Previously we had a field named set that was initialized to the value of
       * collection in setUp(), but that caused problems when a tester changed the
       * value of set or collection but not both.
       */
      protected final Set<E> getSet() {
        return (Set<E>) collection;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 1.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

        checkNotNull(filter);
        boolean changed = false;
        for (K key : keySet()) {
          while (true) {
            V value = get(key);
            if (value == null || !filter.test(key, value)) {
              break;
            } else if (LocalCache.this.remove(key, value)) {
              changed = true;
              break;
            }
          }
        }
        return changed;
      }
    
    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)
  5. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

            cache.refresh(refreshKey);
            getFinishedSignal.countDown();
          }
        }.start();
    
        getStartedSignal.await();
    
        // computation is in progress; asMap shouldn't have changed
        assertEquals(1, map.size());
        assertFalse(map.containsKey(getKey));
        assertSame(refreshKey, map.get(refreshKey));
    
        // let computation complete
        letGetFinishSignal.countDown();
    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)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         * be read without locking. Next fields of nodes are immutable (final). All list additions are
         * performed at the front of each bin. This makes it easy to check changes, and also fast to
         * traverse. When nodes would otherwise be changed, new nodes are created to replace them. This
         * works well for hash tables since the bin lists tend to be short. (The average length is less
         * than two.)
         *
    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)
  7. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        assertEquals(0.0, fpp);
        // usually completed in less than 200 iterations
        while (fpp != 1.0) {
          boolean changed = bf.put(new Object());
          double newFpp = bf.expectedFpp();
          // if changed, the new fpp is strictly higher, otherwise it is the same
          assertTrue(changed ? newFpp > fpp : newFpp == fpp);
          fpp = newFpp;
        }
      }
    
      @AndroidIncompatible // slow
      public void testBitSize() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testAddAllWithEmptyIterator() {
        List<String> alreadyThere = Lists.newArrayList("already", "there");
    
        boolean changed = Iterators.addAll(alreadyThere, Iterators.<String>emptyIterator());
        assertThat(alreadyThere).containsExactly("already", "there").inOrder();
        assertFalse(changed);
      }
    
      public void testAddAllToList() {
        List<String> alreadyThere = Lists.newArrayList("already", "there");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/BloomFilter.java

       * #mightContain(Object)} with the same element will always return {@code true}.
       *
       * @return true if the Bloom filter's bits changed as a result of this operation. If the bits
       *     changed, this is <i>definitely</i> the first time {@code object} has been added to the
       *     filter. If the bits haven't changed, this <i>might</i> be the first time {@code object} has
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java

      /*
       * Previously we had a field named list that was initialized to the value of
       * collection in setUp(), but that caused problems when a tester changed the
       * value of list or collection but not both.
       */
      protected final List<E> getList() {
        return (List<E>) collection;
      }
    
      /**
       * {@inheritDoc}
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.8K bytes
    - Viewed (0)
Back to top