Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 162 for Weak (0.15 sec)

  1. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

          iter.peek();
          fail("peek() should still throw NoSuchElementException after next()");
        } catch (NoSuchElementException expected) {
        }
      }
    
    
      @J2ktIncompatible // weak references, details of GC
      @GwtIncompatible // weak references
      @AndroidIncompatible // depends on details of GC
      public void testFreesNextReference() {
        Iterator<Object> itr =
            new AbstractIterator<Object>() {
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertSame(EntryFactory.WEAK, EntryFactory.getFactory(Strength.WEAK, false, false));
        assertSame(EntryFactory.WEAK_ACCESS, EntryFactory.getFactory(Strength.WEAK, true, false));
        assertSame(EntryFactory.WEAK_WRITE, EntryFactory.getFactory(Strength.WEAK, false, true));
        assertSame(EntryFactory.WEAK_ACCESS_WRITE, EntryFactory.getFactory(Strength.WEAK, true, true));
      }
    
      // computation tests
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertSame(EntryFactory.WEAK, EntryFactory.getFactory(Strength.WEAK, false, false));
        assertSame(EntryFactory.WEAK_ACCESS, EntryFactory.getFactory(Strength.WEAK, true, false));
        assertSame(EntryFactory.WEAK_WRITE, EntryFactory.getFactory(Strength.WEAK, false, true));
        assertSame(EntryFactory.WEAK_ACCESS_WRITE, EntryFactory.getFactory(Strength.WEAK, true, true));
      }
    
      // computation tests
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.MapMakerInternalMap.Strength.STRONG;
    import static com.google.common.collect.MapMakerInternalMap.Strength.WEAK;
    import static com.google.common.testing.SerializableTester.reserializeAndAssert;
    import static java.util.Arrays.asList;
    import static org.junit.Assert.assertThrows;
    import static org.mockito.ArgumentMatchers.isA;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/EnumsTest.java

      }
    
      public void testGetIfPresent_whenNoMatchingConstant() {
        assertThat(Enums.getIfPresent(TestEnum.class, "WOMBAT")).isAbsent();
      }
    
    
      @J2ktIncompatible
      @GwtIncompatible // weak references
      @AndroidIncompatible // depends on details of GC and classloading
      public void testGetIfPresent_doesNotPreventClassUnloading() throws Exception {
        WeakReference<?> shadowLoaderReference = doTestClassUnloading();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  6. src/main/webapp/js/admin/plugins/form-validator/security.js

    atch(/([!,@,#,$,%,^,&,*,?,_,~])/)&&a.match(/([a-zA-Z])/)&&(b+=15),(a.match(/^\w+$/)||a.match(/^\d+$/))&&(b-=10),b<0&&(b=0),b>100&&(b=100),b<20?0:b<40?1:b<=60?2:3},strengthDisplay:function(b,c){var d={fontSize:"12pt",padding:"4px",bad:"Very bad",weak:"Weak",good:"Good",strong:"Strong"};c&&a.extend(d,c),b.bind("keyup",function(){var b=a(this).val(),c="undefined"==typeof d.parent?a(this).parent():a(d.parent),e=c.find(".strength-meter"),f=a.formUtils.validators.validate_strength.calculatePasswordStr...
    JavaScript
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 10.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

        public String toString() {
          assertTrue(Thread.holdsLock(mutex));
          return super.toString();
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /*
       * This is somewhat of a weak test; we verify that all of the methods are
       * correct, but not that they're actually forwarding correctly. We also rely
       * on the other tests (e.g., SynchronizedSetTest) to verify that the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Platform.java

        return Arrays.copyOfRange(source, from, to, (Class<? extends T[]>) arrayOfType.getClass());
      }
    
      /**
       * Configures the given map maker to use weak keys, if possible; does nothing otherwise (i.e., in
       * GWT). This is sometimes acceptable, when only server-side code could generate enough volume
       * that reclamation becomes important.
       */
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

    import com.google.common.primitives.Primitives;
    import com.google.common.reflect.TypeToken;
    import com.google.common.util.concurrent.UncheckedExecutionException;
    import com.google.j2objc.annotations.Weak;
    import java.lang.reflect.Method;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 10.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

          super(new Object(), frq);
        }
    
        @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;
    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)
Back to top