Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Must (0.13 sec)

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

       * does not include "was cancelled." To be explicit: If this method returns a non-null value,
       * then:
       *
       * <ul>
       *   <li>{@code isDone()} must return {@code true}
       *   <li>{@code isCancelled()} must return {@code false}
       *   <li>{@code get()} must not block, and it must throw an {@code ExecutionException} with the
       *       return value of this method as its cause
       * </ul>
       *
    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. android/guava/src/com/google/common/base/Preconditions.java

        if (index < 0) {
          return lenientFormat("%s (%s) must not be negative", desc, index);
        } else if (size < 0) {
          throw new IllegalArgumentException("negative size: " + size);
        } else { // index >= size
          return lenientFormat("%s (%s) must be less than size (%s)", desc, index, 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)
  3. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         * read operations anyway:
         *
         * - All (unsynchronized) read operations must first read the "count" field, and should not
         * look at table entries if it is 0.
         *
         * - All (synchronized) write operations should write to the "count" field after structurally
         * changing any bin. The operations must not take any action that could even momentarily
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

       * using a {@code LinkedHashSet} instead, at the cost of increased memory footprint, to get
       * deterministic iteration behavior.
       *
       * <p>This method is just a small convenience, either for {@code newHashSet(}{@link Arrays#asList
       * asList}{@code (...))}, or for creating an empty set then calling {@link Collections#addAll}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SetsTest.java

        ImmutableSet<SomeEnum> set = collector.finisher().apply(accumulator);
        assertThat(set).containsExactly(SomeEnum.A, SomeEnum.B);
    
        // Subsequent manual manipulation of the accumulator must not affect the state of the built set
        adder.accept(accumulator, SomeEnum.C);
        assertThat(set).containsExactly(SomeEnum.A, SomeEnum.B);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    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)
  6. android/guava/src/com/google/common/collect/Multimaps.java

       * ...
       * Collection<V> values = multimap.get(key);  // Needn't be in synchronized block
       * ...
       * synchronized (multimap) {  // Synchronizing on multimap, not values!
       *   Iterator<V> i = values.iterator(); // Must be in synchronized block
       *   while (i.hasNext()) {
       *     foo(i.next());
       *   }
       * }
       * }</pre>
       *
       * <p>Failure to follow this advice may result in non-deterministic behavior.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Synchronized.java

     * publicly visible subclass), and I doubt any of our current or future Kotlin extensions for the
     * package will refer to the class. Plus, @ParametricNullness is only a temporary workaround,
     * anyway, so we just need to get by without the annotations here until Kotlin better understands
     * our other nullness annotations.
     */
    final class Synchronized {
      private Synchronized() {}
    
    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)
  8. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(original, map);
      }
    
      public void testCapacityForNegativeSizeFails() {
        try {
          Maps.capacity(-1);
          fail("Negative expected size must result in IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /**
       * Tests that nHMWES makes hash maps large enough that adding the expected number of elements
    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)
  9. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(original, map);
      }
    
      public void testCapacityForNegativeSizeFails() {
        try {
          Maps.capacity(-1);
          fail("Negative expected size must result in IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /**
       * Tests that nHMWES makes hash maps large enough that adding the expected number of elements
    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)
  10. guava/src/com/google/common/base/Preconditions.java

        if (index < 0) {
          return lenientFormat("%s (%s) must not be negative", desc, index);
        } else if (size < 0) {
          throw new IllegalArgumentException("negative size: " + size);
        } else { // index >= size
          return lenientFormat("%s (%s) must be less than size (%s)", desc, index, size);
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
Back to top