Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for forthy (0.15 sec)

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

     * when there is a specific reason to prioritize memory over CPU.
     *
     * @author Louis Wasserman
     */
    @J2ktIncompatible // no support for access-order mode in LinkedHashMap delegate
    @GwtIncompatible // not worth using in GWT for now
    @ElementTypesAreNonnullByDefault
    class CompactLinkedHashMap<K extends @Nullable Object, V extends @Nullable Object>
        extends CompactHashMap<K, V> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        for (int i = 0; i < 5; i++) {
          limiter.acquire();
        }
        assertEvents("R0.00", "R1.00", "R1.00", "R1.00", "R1.00");
      }
    
      /**
       * Make sure that bursts can never go above 1-second-worth-of-work for the current rate, even when
       * we change the rate.
       */
      public void testWeNeverGetABurstMoreThanOneSec() {
        RateLimiter limiter = RateLimiter.create(1.0, stopwatch);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactLinkedHashSet.java

     * consumption at the price of moderately increased constant factors of CPU. Only use this class
     * when there is a specific reason to prioritize memory over CPU.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible // not worth using in GWT for now
    @ElementTypesAreNonnullByDefault
    class CompactLinkedHashSet<E extends @Nullable Object> extends CompactHashSet<E> {
    
      /** Creates an empty {@code CompactLinkedHashSet} instance. */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

          return build(/* throwIfDuplicateKeys= */ true);
        }
    
        public ImmutableMap<K, V> buildKeepingLast() {
          if (valueComparator != null) {
            // Probably not worth supporting this in GWT
            throw new UnsupportedOperationException(
                "orderEntriesByValue + buildKeepingLast not supported under GWT");
          }
          return build(/* throwIfDuplicateKeys= */ false);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableList.java

           * parameters. If it were statically checked, the checker would still be OK with it, since
           * we're copying into a `contents` array whose type allows it to contain nulls. Still, it's
           * worth noting that we promise not to put nulls into the array in the first `size` elements.
           * We uphold that promise here because our callers promise that `elements` will not contain
           * nulls in its first `n` elements.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/base/Converter.java

    import java.util.Iterator;
    import javax.annotation.CheckForNull;
    
    /**
     * A function from {@code A} to {@code B} with an associated <i>reverse</i> function from {@code B}
     * to {@code A}; used for converting back and forth between <i>different representations of the same
     * information</i>.
     *
     * <h3>Invertibility</h3>
     *
     * <p>The reverse operation <b>may</b> be a strict <i>inverse</i> (meaning that {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

     * could in principle cause problems for some users. Still, we expect that the benefits of the
     * nullness annotations in particular will outweigh the costs. (And it's worth noting that we have
     * released multiple ListenableFuture.class files that are not byte-for-byte compatible even from
     * the beginning, thanks to using different `-source -target` values for compiling our `-jre` and
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:13:41 GMT 2023
    - 8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Lists.java

        RandomAccessReverseList(List<T> forwardList) {
          super(forwardList);
        }
      }
    
      /** An implementation of {@link List#hashCode()}. */
      static int hashCodeImpl(List<?> list) {
        // TODO(lowasser): worth optimizing for RandomAccess?
        int hashCode = 1;
        for (Object o : list) {
          hashCode = 31 * hashCode + (o == null ? 0 : o.hashCode());
    
          hashCode = ~~hashCode;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      private abstract static class Third<T, D> extends Second<T> {}
    
      private abstract static class Fourth<T, D> extends Third<D, T> {}
    
      private static class ConcreteIS extends Fourth<Integer, String> {}
    
      private static class ConcreteSI extends Fourth<String, Integer> {}
    
      public void testAssignableClassToClass() {
        @SuppressWarnings("rawtypes") // To test TypeToken<List>
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

              try {
                if (timer != null) {
                  long overDelayMs = Math.abs(timer.getDelay(TimeUnit.MILLISECONDS));
                  if (overDelayMs > 10) { // Not all timing drift is worth reporting
                    message += " (timeout delayed by " + overDelayMs + " ms after scheduled time)";
                  }
                }
                message += ": " + delegate;
              } finally {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top