Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 54 for Potter (0.21 sec)

  1. android/guava/src/com/google/common/hash/Striped64.java

       * resizing the table, as well as populating slots with new Cells.
       * There is no need for a blocking lock; when the lock is not
       * available, threads try other slots (or the base).  During these
       * retries, there is increased contention and reduced locality,
       * which is still better than alternatives.
       *
       * Per-thread hash codes are initialized to random values.
       * Contention and/or table collisions are indicated by failed
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      }
    
      /**
       * Not supported. Use {@link #naturalOrder}, which offers better type-safety, instead. This method
       * exists only to hide {@link ImmutableMultiset#builder} from consumers of {@code
       * ImmutableSortedMultiset}.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Use {@link ImmutableSortedMultiset#naturalOrder}, which offers better type-safety.
       */
      @DoNotCall("Use naturalOrder.")
      @Deprecated
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableCollection.java

      public final <T extends @Nullable Object> T[] toArray(T[] other) {
        checkNotNull(other);
        int size = size();
    
        if (other.length < size) {
          Object[] internal = internalArray();
          if (internal != null) {
            return Platform.copy(internal, internalArrayStart(), internalArrayEnd(), other);
          }
          other = ObjectArrays.newArray(other, size);
        } else if (other.length > size) {
          other[size] = null;
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/collect/ImmutableCollection.java

      public final <T extends @Nullable Object> T[] toArray(T[] other) {
        checkNotNull(other);
        int size = size();
    
        if (other.length < size) {
          Object[] internal = internalArray();
          if (internal != null) {
            return Platform.copy(internal, internalArrayStart(), internalArrayEnd(), other);
          }
          other = ObjectArrays.newArray(other, size);
        } else if (other.length > size) {
          other[size] = null;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSet.java

        Builder<E> combine(Builder<E> other) {
          if (hashTable != null) {
            for (int i = 0; i < other.size; ++i) {
              // requireNonNull is safe because the first `size` elements are non-null.
              add((E) requireNonNull(other.contents[i]));
            }
          } else {
            addAll(other.contents, other.size);
          }
          return this;
        }
    
        /**
    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)
  6. android/guava/src/com/google/common/collect/ImmutableList.java

        public Builder<E> addAll(Iterator<? extends E> elements) {
          super.addAll(elements);
          return this;
        }
    
        @CanIgnoreReturnValue
        Builder<E> combine(Builder<E> other) {
          addAll(other.contents, other.size);
          return this;
        }
    
        /**
         * Returns a newly-created {@code ImmutableList} based on the contents of the {@code Builder}.
         */
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      public void testPuttingTheSameKeyTwiceThrowsOnBuild() {
        Builder<String, Integer> builder =
            new Builder<String, Integer>()
                .put("one", 1)
                .put("one", 1); // throwing on this line might be better but it's too late to change
    
        try {
          builder.buildOrThrow();
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testBuildKeepingLast_allowsOverwrite() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

          }
          if (object instanceof MapDifference) {
            MapDifference<?, ?> other = (MapDifference<?, ?>) object;
            return entriesOnlyOnLeft().equals(other.entriesOnlyOnLeft())
                && entriesOnlyOnRight().equals(other.entriesOnlyOnRight())
                && entriesInCommon().equals(other.entriesInCommon())
                && entriesDiffering().equals(other.entriesDiffering());
          }
          return false;
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       * {@code AsyncClosingFunction.apply}. Any heavyweight operations should occur in other threads
       * responsible for completing the returned {@code ClosingFuture}.)
       *
       * <p>After calling this method, you may not call {@link #finishToFuture()}, {@link
       * #finishToValueAndCloser(ValueAndCloserConsumer, Executor)}, or any other derivation method on
       * the original {@code ClosingFuture} instance.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/LocalCache.java

          if (!map.evictsBySize()) {
            return;
          }
    
          drainRecencyQueue();
    
          // If the newest entry by itself is too heavy for the segment, don't bother evicting
          // anything else, just that
          if (newest.getValueReference().getWeight() > maxSegmentWeight) {
            if (!removeEntry(newest, newest.getHash(), RemovalCause.SIZE)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
Back to top