Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 85 for Berger (0.15 sec)

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

     * features}, the features supported by the iterator; and {@code expectedElements}, the elements the
     * iterator should return in order.
     *
     * <p>The items in {@code elementsToInsert} will be repeated if {@code steps} is larger than the
     * number of provided elements.
     *
     * @author Chris Povirk
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ListIteratorTester<E extends @Nullable Object>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Platform.java

      }
    
      /**
       * 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
      static MapMaker tryWeakKeys(MapMaker mapMaker) {
        return mapMaker.weakKeys();
      }
    
    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)
  3. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

            public Lock get() {
              return new ReentrantLock();
            }
          };
    
      @Param({"2", "8", "64", "1024", "65536"})
      int numStripes;
    
      @Param Impl impl;
    
      enum Impl {
        EAGER {
          @Override
          Striped<Lock> get(int stripes) {
            return Striped.lock(stripes);
          }
        },
        LAZY_SMALL {
          @Override
          Striped<Lock> get(int stripes) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

            public Lock get() {
              return new ReentrantLock();
            }
          };
    
      @Param({"2", "8", "64", "1024", "65536"})
      int numStripes;
    
      @Param Impl impl;
    
      enum Impl {
        EAGER {
          @Override
          Striped<Lock> get(int stripes) {
            return Striped.lock(stripes);
          }
        },
        LAZY_SMALL {
          @Override
          Striped<Lock> get(int stripes) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/EqualsTester.java

     * that are equal to each other but unequal to the objects in any other group. For example:
     *
     * <pre>
     * new EqualsTester()
     *     .addEqualityGroup(new User("page"), new User("page"))
     *     .addEqualityGroup(new User("sergey"))
     *     .testEquals();
     * </pre>
     *
     * <p>This tests:
     *
     * <ul>
     *   <li>comparing each object against itself returns true
     *   <li>comparing each object against null returns false
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

    import java.util.concurrent.Future;
    import java.util.concurrent.FutureTask;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    // TODO(cpovirk): Should this be merged into UninterruptiblesTest?
    /**
     * Unit test for {@link Uninterruptibles#getUninterruptibly}
     *
     * @author Kevin Bourrillion
     * @author Chris Povirk
     */
    public class UninterruptibleFutureTest extends TestCase {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CompactHashing.java

        } else if (table instanceof short[]) {
          ((short[]) table)[index] = (short) entry; // unsigned write
        } else {
          ((int[]) table)[index] = entry;
        }
      }
    
      /**
       * Returns a larger power of 2 hashtable size given the current mask.
       *
       * <p>For hashtable sizes less than or equal to 32, the returned power of 2 is 4x the current
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompactHashing.java

        } else if (table instanceof short[]) {
          ((short[]) table)[index] = (short) entry; // unsigned write
        } else {
          ((int[]) table)[index] = entry;
        }
      }
    
      /**
       * Returns a larger power of 2 hashtable size given the current mask.
       *
       * <p>For hashtable sizes less than or equal to 32, the returned power of 2 is 4x the current
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        assertTrue(InetAddresses.isTeredoAddress((Inet6Address) ip));
        InetAddresses.TeredoInfo teredo = InetAddresses.getTeredoInfo((Inet6Address) ip);
    
        InetAddress server = InetAddresses.forString(serverStr);
        assertEquals(server, teredo.getServer());
    
        InetAddress client = InetAddresses.forString(clientStr);
        assertEquals(client, teredo.getClient());
    
        assertEquals(port, teredo.getPort());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

            for (int i = 0; i < array.length; i++) {
              array[i] = counter.getAndIncrement();
            }
            builder.addAll(ImmutableIntArray.copyOf(array));
          }
        },
        ADD_LARGER_ARRAY {
          @Override
          void doIt(ImmutableIntArray.Builder builder, AtomicInteger counter) {
            int[] array = new int[RANDOM.nextInt(200) + 200];
            for (int i = 0; i < array.length; i++) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
Back to top