Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 73 for Settings (0.15 sec)

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

          return ImmutableSet.copyOf(elements);
        }
      }
    
      public static class DegeneratedImmutableSetGenerator extends TestStringSetGenerator {
        // Make sure we get what we think we're getting, or else this test
        // is pointless
        @SuppressWarnings("cast")
        @Override
        protected Set<String> create(String[] elements) {
          return (ImmutableSet<String>) ImmutableSet.of(elements[0], elements[0]);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        // Cannot cancel a complete delegate
        assertFalse(delegates.get(0).cancel(true));
        // Cancel the delegate before the input future is done
        assertTrue(delegates.get(1).cancel(true));
        // Setting the future still works since cancellation didn't propagate
        assertTrue(future2.set(2L));
        // Second check to ensure the input future was not cancelled
        assertEquals((Long) 2L, getDone(future2));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Serialization.java

            @SuppressWarnings("unchecked") // reading data stored by writeMultimap
            V value = (V) stream.readObject();
            values.add(value);
          }
        }
      }
    
      // Secret sauce for setting final fields; don't make it public.
      static <T> FieldSetter<T> getFieldSetter(Class<T> clazz, String fieldName) {
        try {
          Field field = clazz.getDeclaredField(fieldName);
          return new FieldSetter<>(field);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheTesting.java

        }
      }
    
      interface Receiver<T> {
        void accept(@Nullable T object);
      }
    
      /**
       * Assuming the given cache has maximum size {@code maxSize}, this method populates the cache (by
       * getting a bunch of different keys), then makes sure all the items in the cache are also in the
       * eviction queue. It will invoke the given {@code operation} on the first element in the eviction
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

           * only if this iterator passed across threads,
           * which we don't support anyway.
           */
          return nextIndex >= 0;
        }
    
        /**
         * Checks whether nextIndex is valid; if so setting nextItem. Stops iterator when either hits
         * putIndex or sees null item.
         */
        private void checkNext() {
          if (nextIndex == putIndex) {
            nextIndex = -1;
            nextItem = null;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/StatsTesting.java

       * #MANY_VALUES_MEAN} and the sum-of-squares-of-deltas is {@link
       * #MANY_VALUES_SUM_OF_SQUARES_OF_DELTAS}. The smallest and largest finite values are always
       * {@link #MANY_VALUES_MIN} and {@link #MANY_VALUES_MAX}, although setting non-finite values will
       * change the true min and max.
       */
      static class ManyValues {
    
        private final ImmutableList<Double> values;
    
        ManyValues(double[] values) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/InternetDomainName.java

       */
      private InternetDomainName ancestor(int levels) {
        ImmutableList<String> ancestorParts = parts.subList(levels, parts.size());
    
        // levels equals the number of dots that are getting clipped away, then add the length of each
        // clipped part to get the length of the leading substring that is being removed.
        int substringFrom = levels;
        for (int i = 0; i < levels; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 20:47:23 GMT 2024
    - 28K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeToken.java

          @Override
          @CheckForNull
          K getSuperclass(K type) {
            return delegate.getSuperclass(type);
          }
        }
      }
    
      // This happens to be the hash of the class as of now. So setting it makes a backward compatible
      // change. Going forward, if any incompatible change is added, we can change the UID back to 1.
      private static final long serialVersionUID = 3637540370352322684L;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    curious dream, dear, certainly:  but now run in to your tea; it's
    getting late.'  So Alice got up and ran off, thinking while she
    ran, as well she might, what a wonderful dream it had been.
    
      But her sister sat still just as she left her, leaning her
    head on her hand, watching the setting sun, and thinking of
    little Alice and all her wonderful Adventures, till she too began
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 145.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        // then FRQ does not bother to load Finalizer.class through a separate ClassLoader. That happens
        // in our test environment, which foils the purpose of this test, so we disable the logic for
        // our test by setting a static field. We are changing the field in the parallel version of FRQ
        // and each test creates its own one of those, so there is no test interference here.
        Class<?> sepFrqSystemLoaderC =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
Back to top