Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 289 for Reference (0.22 sec)

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

            void executeAndCompare(ListIterator<E> reference, Iterator<E> target) {
              internalExecuteAndCompare(reference, target, NEXT_METHOD);
            }
          };
      Stimulus<E, Iterator<E>> remove =
          new Stimulus<E, Iterator<E>>("remove") {
            @Override
            void executeAndCompare(ListIterator<E> reference, Iterator<E> target) {
              internalExecuteAndCompare(reference, target, REMOVE_METHOD);
            }
          };
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Preconditions.java

        if (reference == null) {
          throw new NullPointerException();
        }
        return reference;
      }
    
      /**
       * Ensures that an object reference passed as a parameter to the calling method is not null.
       *
       * @param reference an object reference
       * @param errorMessage the exception message to use if the check fails; will be converted to a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/internal/Finalizer.java

         * been cleared by this point.
         */
        reference.clear();
    
        if (reference == frqReference) {
          /*
           * The client no longer has a reference to the FinalizableReferenceQueue. We can stop.
           */
          return false;
        }
    
        try {
          finalizeReferentMethod.invoke(reference);
        } catch (Throwable t) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

    public class EqualsTesterTest extends TestCase {
      private ValidTestObject reference;
      private EqualsTester equalsTester;
      private ValidTestObject equalObject1;
      private ValidTestObject equalObject2;
      private ValidTestObject notEqualObject1;
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        reference = new ValidTestObject(1, 2);
        equalsTester = new EqualsTester();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        assertNotNull(sepStopwatchA.get());
        // Clear all references to the Stopwatch and wait for it to be gc'd.
        sepStopwatchA.set(null);
        GcFinalization.awaitClear(sepStopwatchRef.get());
        // Return a weak reference to the parallel ClassLoader. This is the reference that should
        // eventually become clear if there are no other references to the ClassLoader.
        return new WeakReference<ClassLoader>(sepLoader);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

      private static final double ALLOWED_ERROR = 1.0e-10;
      private static final QuantilesAlgorithm REFERENCE_ALGORITHM = QuantilesAlgorithm.SORTING;
      private static final Set<QuantilesAlgorithm> NON_REFERENCE_ALGORITHMS =
          Sets.difference(
              ImmutableSet.copyOf(QuantilesAlgorithm.values()), ImmutableSet.of(REFERENCE_ALGORITHM));
    
      private double[] dataset;
    
      @Override
      protected void setUp() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

        }
    
        @Override
        public void finalizeReferent() {
          finalizeReferentCalled = true;
        }
      }
    
      /**
       * Keeps a weak reference to the underlying reference queue. When this reference is cleared, we
       * know that the background thread has stopped and released its strong reference.
       */
      private WeakReference<ReferenceQueue<Object>> queueReference;
    
    
      public void testThatFinalizerStops() {
        weaklyReferenceQueue();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 10 08:40:05 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

        }
    
        @Override
        public void finalizeReferent() {
          finalizeReferentCalled = true;
        }
      }
    
      /**
       * Keeps a weak reference to the underlying reference queue. When this reference is cleared, we
       * know that the background thread has stopped and released its strong reference.
       */
      private WeakReference<ReferenceQueue<Object>> queueReference;
    
    
      public void testThatFinalizerStops() {
        weaklyReferenceQueue();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 10 08:40:05 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            map.put(keyOne, valueOne);
            InternalEntry<Object, Object, ?> entry = segment.getEntry(keyOne, hashOne);
    
            @SuppressWarnings("unchecked")
            Reference<Object> reference = (Reference<Object>) entry;
            reference.enqueue();
    
            map.put(keyTwo, valueTwo);
            assertFalse(map.containsKey(keyOne));
            assertFalse(map.containsValue(valueOne));
            assertNull(map.get(keyOne));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            map.put(keyOne, valueOne);
            InternalEntry<Object, Object, ?> entry = segment.getEntry(keyOne, hashOne);
    
            @SuppressWarnings("unchecked")
            Reference<Object> reference = (Reference<Object>) entry;
            reference.enqueue();
    
            map.put(keyTwo, valueTwo);
            assertFalse(map.containsKey(keyOne));
            assertFalse(map.containsValue(valueOne));
            assertNull(map.get(keyOne));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
Back to top