Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for storage (0.16 sec)

  1. guava/src/com/google/common/base/MoreObjects.java

         * helps to shortcut most calls to isEmpty(), which is important because the check for emptiness
         * is relatively expensive. Use a subtype so this also doesn't need any extra storage.
         */
        private static final class UnconditionalValueHolder extends ValueHolder {}
      }
    
      private MoreObjects() {}
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterables.java

       * method. The returned lists implement {@link RandomAccess}, whether or not the input list does.
       *
       * <p><b>Note:</b> The current implementation eagerly allocates storage for {@code size} elements.
       * As a consequence, passing values like {@code Integer.MAX_VALUE} can lead to {@link
       * OutOfMemoryError}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Optional.java

     *   <li>To distinguish between "unknown" (for example, not present in a map) and "known to have no
     *       value" (present in the map, with value {@code Optional.absent()})
     *   <li>To wrap nullable references for storage in a collection that does not support {@code null}
     *       (though there are <a
     *       href="https://github.com/google/guava/wiki/LivingWithNullHostileCollections">several other
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/Files.java

       *     not support creating temporary directories securely
       * @deprecated For Android users, see the <a
       *     href="https://developer.android.com/training/data-storage" target="_blank">Data and File
       *     Storage overview</a> to select an appropriate temporary directory (perhaps {@code
       *     context.getCacheDir()}), and create your own directory under that. (For example, you might
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactHashSet.java

        setEntry(entryIndex, CompactHashing.maskCombine(hash, UNSET, mask));
        setElement(entryIndex, object);
      }
    
      /** Resizes the entries storage if necessary. */
      private void resizeMeMaybe(int newSize) {
        int entriesSize = requireEntries().length;
        if (newSize > entriesSize) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Suppliers.java

          return uncheckedCastNullableTToT(value);
        }
    
        @Override
        public String toString() {
          // This is a little strange if the unit the user provided was not NANOS,
          // but we don't want to store the unit just for toString
          return "Suppliers.memoizeWithExpiration(" + delegate + ", " + durationNanos + ", NANOS)";
        }
    
        private static final long serialVersionUID = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        this.entries[entryIndex] = ((long) hash << 32) | (NEXT_MASK & UNSET);
        this.keys[entryIndex] = key;
        this.values[entryIndex] = value;
      }
    
      /** Returns currentSize + 1, after resizing the entries storage if necessary. */
      private void resizeMeMaybe(int newSize) {
        int entriesSize = entries.length;
        if (newSize > entriesSize) {
          int newCapacity = entriesSize + Math.max(1, entriesSize >>> 1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 15K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Joiner.java

     *
     * <p><b>Warning: joiner instances are always immutable</b>; a configuration method such as {@code
     * useForNull} has no effect on the instance it is invoked on! You must store and use the new joiner
     * instance returned by the method. This makes joiners thread-safe, and safe to store as {@code
     * static final} constants.
     *
     * <pre>{@code
     * // Bad! Do not do this!
     * Joiner joiner = Joiner.on(',');
     * joiner.skipNulls(); // does nothing!
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/LinkedListMultimap.java

        return values().contains(value);
      }
    
      // Modification Operations
    
      /**
       * Stores a key-value pair in the multimap.
       *
       * @param key key to store in the multimap
       * @param value value to store in the multimap
       * @return {@code true} always
       */
      @CanIgnoreReturnValue
      @Override
      public boolean put(@ParametricNullness K key, @ParametricNullness V value) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

        // Unfortunately this is pasted from ImmutableCollection.Builder.
        private static int expandedCapacity(int oldCapacity, int minCapacity) {
          if (minCapacity < 0) {
            throw new AssertionError("cannot store more than MAX_VALUE elements");
          }
          // careful of overflow!
          int newCapacity = oldCapacity + (oldCapacity >> 1) + 1;
          if (newCapacity < minCapacity) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
Back to top