Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for init (0.13 sec)

  1. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      @ParametricNullness
      public V get(long timeout, TimeUnit unit)
          throws InterruptedException, TimeoutException, ExecutionException {
        // NOTE: if timeout < 0, remainingNanos will be < 0 and we will fall into the while(true) loop
        // at the bottom and throw a timeoutexception.
        final long timeoutNanos = unit.toNanos(timeout); // we rely on the implicit null check on unit.
        long remainingNanos = timeoutNanos;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertTrue(enumer.hasMoreElements());
        assertEquals(1, (int) enumer.nextElement());
        assertTrue(enumer.hasMoreElements());
        assertEquals(2, (int) enumer.nextElement());
        assertTrue(enumer.hasMoreElements());
        assertEquals(3, (int) enumer.nextElement());
        assertFalse(enumer.hasMoreElements());
      }
    
      private static Enumeration<Integer> enumerate(int... ints) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      private static Object objectWithHashCode(final int hashCode) {
        return new Object() {
          @Override
          public int hashCode() {
            return hashCode;
          }
        };
      }
    
      // TODO b/327389044 - `Set<? extends Object> elements` should be enough but J2KT needs the <E>
      private static <E> void assertPowerSetHashCode(int expected, Set<E> elements) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Preconditions.java

       */
      public static void checkPositionIndexes(int start, int end, int size) {
        // Carefully optimized for execution by hotspot (explanatory comment above)
        if (start < 0 || end < start || end > size) {
          throw new IndexOutOfBoundsException(badPositionIndexes(start, end, size));
        }
      }
    
      private static String badPositionIndexes(int start, int end, int size) {
        if (start < 0 || start > size) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

            CacheBuilder.newBuilder().weakValues().build(countingLoader);
        ConcurrentMap<Object, Object> map = cache.asMap();
    
        int iterations = 10;
        WeakReference<Object> ref = new WeakReference<>(null);
        int expectedComputations = 0;
        for (int i = 0; i < iterations; i++) {
          // The entry should get garbage collected and recomputed.
          Object oldValue = ref.get();
          if (oldValue == null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        }
    
        private Builder(Comparator<? super K> comparator, int initialCapacity) {
          this.comparator = checkNotNull(comparator);
          this.keys = new @Nullable Object[initialCapacity];
          this.values = new @Nullable Object[initialCapacity];
        }
    
        private void ensureCapacity(int minCapacity) {
          if (minCapacity > keys.length) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      public void testCapacityForLargeSizes() {
        int[] largeExpectedSizes =
            new int[] {
              Integer.MAX_VALUE / 2 - 1,
              Integer.MAX_VALUE / 2,
              Integer.MAX_VALUE / 2 + 1,
              Integer.MAX_VALUE - 1,
              Integer.MAX_VALUE
            };
        for (int expectedSize : largeExpectedSizes) {
          int capacity = Maps.capacity(expectedSize);
          assertTrue(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      public void testCapacityForLargeSizes() {
        int[] largeExpectedSizes =
            new int[] {
              Integer.MAX_VALUE / 2 - 1,
              Integer.MAX_VALUE / 2,
              Integer.MAX_VALUE / 2 + 1,
              Integer.MAX_VALUE - 1,
              Integer.MAX_VALUE
            };
        for (int expectedSize : largeExpectedSizes) {
          int capacity = Maps.capacity(expectedSize);
          assertTrue(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Synchronized.java

        }
    
        @Override
        public int count(@CheckForNull Object o) {
          synchronized (mutex) {
            return delegate().count(o);
          }
        }
    
        @Override
        public int add(@ParametricNullness E e, int n) {
          synchronized (mutex) {
            return delegate().add(e, n);
          }
        }
    
        @Override
        public int remove(@CheckForNull Object o, int n) {
          synchronized (mutex) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

            CacheBuilder.newBuilder().weakValues().build(countingLoader);
        ConcurrentMap<Object, Object> map = cache.asMap();
    
        int iterations = 10;
        WeakReference<Object> ref = new WeakReference<>(null);
        int expectedComputations = 0;
        for (int i = 0; i < iterations; i++) {
          // The entry should get garbage collected and recomputed.
          Object oldValue = ref.get();
          if (oldValue == null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
Back to top