Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 94 for Bolder (0.15 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        class Holder {
    
          int value = 2;
        }
        final Holder holder = new Holder();
    
        // This function adds the holder's value to the input value.
        Function<Integer, Integer> adder =
            new Function<Integer, Integer>() {
              @Override
              public Integer apply(Integer from) {
                return from + holder.value;
              }
            };
    
    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)
  2. android/guava/src/com/google/common/cache/Striped64.java

       * contention. See above for explanation. This method suffers the usual non-modularity problems of
       * optimistic retry code, relying on rechecked sets of reads.
       *
       * @param x the value
       * @param hc the hash code holder
       * @param wasUncontended false if CAS failed before call
       */
      final void retryUpdate(long x, @CheckForNull int[] hc, boolean wasUncontended) {
        int h;
        if (hc == null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        Collection<E> siblingCollection = new ArrayList<>();
        siblingCollection.add(sampleElement);
    
        Collection<E> copy = new ArrayList<>();
        // Avoid copy.addAll(collection), which runs afoul of an Android bug in older versions:
        // http://b.android.com/72073 http://r.android.com/98929
        Iterators.addAll(copy, collection.iterator());
    
        try {
          collection.add(sampleElement);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 15K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMultimap.java

     *
     * <p><b>Key-grouped iteration.</b> All view collections follow the same iteration order. In all
     * current implementations, the iteration order always keeps multiple entries with the same key
     * together. Any creation method that would customarily respect insertion order (such as {@link
     * #copyOf(Multimap)}) instead preserves key-grouped order by inserting entries for an existing key
     * immediately after the last entry having that key.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableMultimap.java

     *
     * <p><b>Key-grouped iteration.</b> All view collections follow the same iteration order. In all
     * current implementations, the iteration order always keeps multiple entries with the same key
     * together. Any creation method that would customarily respect insertion order (such as {@link
     * #copyOf(Multimap)}) instead preserves key-grouped order by inserting entries for an existing key
     * immediately after the last entry having that key.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedBytes.java

           * And, no, defining (final or not) local variables out of the loop still isn't as good
           * because the null check on the theUnsafe object remains inside the loop and
           * BYTE_ARRAY_BASE_OFFSET doesn't get constant-folded.
           *
           * The compiler can treat static final fields as compile-time constants and can constant-fold
           * them while (final or not) local variables are run time values.
           */
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/HashMultisetTest.java

      @GwtIncompatible // SerializableTester
      public void testSerializationIndirectSelfReference() {
        Multiset<MultisetHolder> multiset = HashMultiset.create();
        MultisetHolder holder = new MultisetHolder(multiset);
        multiset.add(holder, 2);
        Multiset<MultisetHolder> copy = SerializableTester.reserialize(multiset);
        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next().member);
      }
    
      /*
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        IdentityLoader<Object> loader = identityLoader();
        for (int i = 1; i < 1000; i++) {
          LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().maximumSize(i).build(loader);
          assertEquals(i, CacheTesting.getTotalSegmentSize(cache));
        }
      }
    
      public void testEviction_setMaxSegmentWeight() {
        IdentityLoader<Object> loader = identityLoader();
        for (int i = 1; i < 1000; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

            continue; // These classes exist only for the GWT compiler, not to be used.
          }
          if (
          /*
           * At least one of the classes nested inside TypeResolverTest triggers a bug under older JDKs:
           * https://bugs.openjdk.org/browse/JDK-8215328 -> https://bugs.openjdk.org/browse/JDK-8215470
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

            continue; // These classes exist only for the GWT compiler, not to be used.
          }
          if (
          /*
           * At least one of the classes nested inside TypeResolverTest triggers a bug under older JDKs:
           * https://bugs.openjdk.org/browse/JDK-8215328 -> https://bugs.openjdk.org/browse/JDK-8215470
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
Back to top