Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Cable (0.2 sec)

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

       * The pointer to a key is stored in hashTable[Hashing.smear(key.hashCode()) % table.length],
       * save that if that location is already full, we try the next index, and the next, until we
       * find an empty table position.  Since the table has a power-of-two size, we use
       * & (table.length - 1) instead of % table.length, though.
       */
    
      @CheckForNull private final transient Object hashTable;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      @Generates
      static <R, C, V> Table<R, C, V> generateTable(R row, C column, V value) {
        return generateHashBasedTable(row, column, value);
      }
    
      @Generates
      static <R, C, V> HashBasedTable<R, C, V> generateHashBasedTable(R row, C column, V value) {
        HashBasedTable<R, C, V> table = HashBasedTable.create();
        table.put(row, column, value);
        return table;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/Types.java

       * UnsupportedOperationException}; this should only apply to {@code getAnnotatedBounds()}. This
       * does mean that users on Java 8 who obtain an instance of {@code TypeVariable} from {@link
       * TypeResolver#resolveType} will not be able to call {@code getAnnotatedBounds()} on it, but that
       * should hopefully be rare.
       *
       * <p>TODO(b/147144588): We are currently also missing the methods inherited from {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

         * doesn't need this suppression, but we keep it to minimize diffs.) Generally be more clear
         * about when we have an Object[] vs. a Comparable[] or other array type in internalArray? If we
         * used Object[], we might be able to optimize toArray() to use clone() sometimes. (See
         * cl/592273615 and cl/592273683.)
         */
        @SuppressWarnings("unchecked")
        public Builder(Comparator<? super E> comparator) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

              K[] sortedKs = (K[]) sortedKeys;
              Arrays.sort(sortedKs, comparator);
              Object[] sortedValues = new Object[size];
    
              // We might, somehow, be able to reorder values in-place.  But it doesn't seem like
              // there's a way around creating the separate sortedKeys array, and if we're allocating
    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)
  6. android/guava/src/com/google/common/collect/ImmutableTable.java

      }
    
      /**
       * Returns an immutable copy of the provided table.
       *
       * <p>The {@link Table#cellSet()} iteration order of the provided table determines the iteration
       * ordering of all views in the returned table. Note that some views of the original table and the
       * copied table may have different iteration orders. For more control over the ordering, create a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      @Generates
      static <R, C, V> Table<R, C, V> generateTable(R row, C column, V value) {
        return generateHashBasedTable(row, column, value);
      }
    
      @Generates
      static <R, C, V> HashBasedTable<R, C, V> generateHashBasedTable(R row, C column, V value) {
        HashBasedTable<R, C, V> table = HashBasedTable.create();
        table.put(row, column, value);
        return table;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Sets.java

        HashSet<E> set = newHashSet();
        Iterators.addAll(set, elements);
        return set;
      }
    
      /**
       * Returns a new hash set using the smallest initial table size that can hold {@code expectedSize}
       * elements without resizing. Note that this is not what {@link HashSet#HashSet(int)} does, but it
       * is what most users want and expect it to do.
       *
    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)
  9. android/guava/src/com/google/common/collect/Ordering.java

       *
       * <p>The generated comparator is serializable if all the provided values are serializable.
       *
       * @param valuesInOrder the values that the returned comparator will be able to compare, in the
       *     order the comparator should induce
       * @return the comparator described above
       * @throws NullPointerException if any of the provided values is null
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSet.java

      static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
      // Represents how tightly we can pack things, as a maximum.
      private static final double DESIRED_LOAD_FACTOR = 0.7;
    
      // If the set has this many elements, it will "max out" the table size
      private static final int CUTOFF = (int) (MAX_TABLE_SIZE * DESIRED_LOAD_FACTOR);
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top