Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for qhold (0.15 sec)

  1. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

       * <i>should</i> hold {@code expectedSize} elements without rebuilding internal data structures.
       *
       * @param expectedSize the number of elements you expect to add to the returned set
       * @return a new, empty {@code CompactLinkedHashSet} with enough capacity to hold {@code
       *     expectedSize} elements without resizing
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SynchronizedSetTest.java

        }
    
        @Override
        public boolean isEmpty() {
          assertTrue(Thread.holdsLock(mutex));
          return super.isEmpty();
        }
    
        /* Don't test iterator(); it may or may not hold the mutex. */
    
        @Override
        public boolean remove(@Nullable Object o) {
          assertTrue(Thread.holdsLock(mutex));
          return super.remove(o);
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ListMultimap.java

    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@code Multimap} that can hold duplicate key-value pairs and that maintains the insertion
     * ordering of values for a given key. See the {@link Multimap} documentation for information common
     * to all multimaps.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMapEntry.java

     *
     * @author Louis Wasserman
     */
    @GwtIncompatible // unnecessary
    @ElementTypesAreNonnullByDefault
    class ImmutableMapEntry<K, V> extends ImmutableEntry<K, V> {
      /**
       * Creates an {@code ImmutableMapEntry} array to hold parameterized entries. The result must never
       * be upcast back to ImmutableMapEntry[] (or Object[], etc.), or allowed to escape the class.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheTesting.java

       * given key. This assumes that the associated entry is a WeakValueReference or a
       * SoftValueReference (and not a LoadingValueReference), and throws an IllegalStateException if
       * that assumption does not hold.
       */
      @SuppressWarnings("unchecked") // the instanceof check and the cast generate this warning
      static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

              .isEqualTo(returnType);
        }
        return sub;
      }
    
      /**
       * Call this in a {@link TestSubtype} public method asserting that subtype relationship does not
       * hold.
       */
      final <X> @Nullable X notSubtype(@SuppressWarnings("unused") Object sub) {
        Type returnType = method.getGenericReturnType();
        Type paramType = getOnlyParameterType();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/SparseImmutableTable.java

          R rowKey = cell.getRowKey();
          C columnKey = cell.getColumnKey();
          V value = cell.getValue();
    
          /*
           * These requireNonNull calls are safe because we construct the maps to hold all the provided
           * cells.
           */
          cellRowIndices[i] = requireNonNull(rowIndex.get(rowKey));
          Map<C, V> thisRow = requireNonNull(rows.get(rowKey));
          cellColumnInRowIndices[i] = thisRow.size();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CompactHashing.java

      private static final int SHORT_MAX_SIZE = 1 << Short.SIZE; // 2^16 = 65_536
      private static final int SHORT_MASK = (1 << Short.SIZE) - 1; // 2^16 - 1 = 65_535
    
      /**
       * Returns the power of 2 hashtable size required to hold the expected number of items or the
       * minimum hashtable size, whichever is greater.
       */
      static int tableSize(int expectedSize) {
    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)
  9. android/guava/src/com/google/common/collect/CompactHashing.java

      private static final int SHORT_MAX_SIZE = 1 << Short.SIZE; // 2^16 = 65_536
      private static final int SHORT_MASK = (1 << Short.SIZE) - 1; // 2^16 - 1 = 65_535
    
      /**
       * Returns the power of 2 hashtable size required to hold the expected number of items or the
       * minimum hashtable size, whichever is greater.
       */
      static int tableSize(int expectedSize) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

       * use soft, weak, or phantom references.
       *
       * @param map place to store the mapping from each key to its corresponding values
       * @param factory supplier of new, empty collections that will each hold all values for a given
       *     key
       * @throws IllegalArgumentException if {@code map} is not empty
       */
      public static <K extends @Nullable Object, V extends @Nullable Object> Multimap<K, V> newMultimap(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 86.1K bytes
    - Viewed (0)
Back to top