Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 537 for creator (0.16 sec)

  1. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

      public static RateLimiter create(double permitsPerSecond, long warmupPeriod, TimeUnit unit) {
        checkArgument(warmupPeriod >= 0, "warmupPeriod must not be negative: %s", warmupPeriod);
        return create(
            permitsPerSecond, warmupPeriod, unit, 3.0, SleepingStopwatch.createFromSystemTimer());
      }
    
      @VisibleForTesting
      static RateLimiter create(
          double permitsPerSecond,
          long warmupPeriod,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Hashing.java

       *     HashFunction} instance may use memory proportional to this integer.
       * @return a hash function, described above, that produces hash codes of length {@code
       *     minimumBits} or greater
       */
      public static HashFunction goodFastHash(int minimumBits) {
        int bits = checkPositiveAndMakeMultipleOf32(minimumBits);
    
        if (bits == 32) {
          return Murmur3_32HashFunction.GOOD_FAST_HASH_32;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableList.java

       * it.
       *
       * @since 2.0
       */
      public static final class Builder<E> extends ImmutableCollection.Builder<E> {
        // The first `size` elements are non-null.
        @VisibleForTesting @Nullable Object[] contents;
        private int size;
        private boolean forceCopy;
    
        /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  4. guava/src/com/google/common/collect/HashBasedTable.java

        }
    
        private static final long serialVersionUID = 0;
      }
    
      /** Creates an empty {@code HashBasedTable}. */
      public static <R, C, V> HashBasedTable<R, C, V> create() {
        return new HashBasedTable<>(new LinkedHashMap<R, Map<C, V>>(), new Factory<C, V>(0));
      }
    
      /**
       * Creates an empty {@code HashBasedTable} with the specified map sizes.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java

      }
    
      @Override
      public T create(Object... elements) {
        UnhashableObject[] array = createArray(elements.length);
        int i = 0;
        for (Object e : elements) {
          array[i++] = (UnhashableObject) e;
        }
        return create(array);
      }
    
      /**
       * Creates a new collection containing the given elements; implement this method instead of {@link
       * #create(Object...)}.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactLinkedHashSet.java

    @ElementTypesAreNonnullByDefault
    class CompactLinkedHashSet<E extends @Nullable Object> extends CompactHashSet<E> {
    
      /** Creates an empty {@code CompactLinkedHashSet} instance. */
      public static <E extends @Nullable Object> CompactLinkedHashSet<E> create() {
        return new CompactLinkedHashSet<>();
      }
    
      /**
       * Creates a <i>mutable</i> {@code CompactLinkedHashSet} instance containing the elements of the
    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)
  7. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        @Override
        public List<Double> create(Object... elements) {
          Double[] array = new Double[elements.length];
          int i = 0;
          for (Object e : elements) {
            array[i++] = (Double) e;
          }
          return create(array);
        }
    
        /**
         * Creates a new collection containing the given elements; implement this method instead of
         * {@link #create(Object...)}.
         */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Comparators.java

          Comparator<T> comparator) {
        return new LexicographicalOrdering<S>(checkNotNull(comparator));
      }
    
      /**
       * Returns {@code true} if each element in {@code iterable} after the first is greater than or
       * equal to the element that preceded it, according to the specified comparator. Note that this is
       * always true when the iterable has fewer than two elements.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        }
    
        @Override
        public List<Long> create(Object... elements) {
          Long[] array = new Long[elements.length];
          int i = 0;
          for (Object e : elements) {
            array[i++] = (Long) e;
          }
          return create(array);
        }
    
        /**
         * Creates a new collection containing the given elements; implement this method instead of
         * {@link #create(Object...)}.
         */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterables.java

        return castOrCopyToCollection(iterable).toArray();
      }
    
      /**
       * Converts an iterable into a collection. If the iterable is already a collection, it is
       * returned. Otherwise, an {@link java.util.ArrayList} is created with the contents of the
       * iterable in the same iteration order.
       */
      private static <E extends @Nullable Object> Collection<E> castOrCopyToCollection(
          Iterable<E> iterable) {
    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)
Back to top