Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for opacity (0.17 sec)

  1. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java

        queue = (BlockingQueue<String>) constructor.newInstance(capacity);
    
        strings = new String[capacity];
        for (int i = 0; i < capacity; i++) {
          strings[i] = String.valueOf(Math.random());
        }
      }
    
      @Benchmark
      void addsAndRemoves(int reps) {
        int capacity = this.capacity;
        BlockingQueue<String> queue = this.queue;
        String[] strings = this.strings;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/UndirectedGraphConnections.java

        switch (incidentEdgeOrder.type()) {
          case UNORDERED:
            return new UndirectedGraphConnections<>(
                new HashMap<N, V>(INNER_CAPACITY, INNER_LOAD_FACTOR));
          case STABLE:
            return new UndirectedGraphConnections<>(
                new LinkedHashMap<N, V>(INNER_CAPACITY, INNER_LOAD_FACTOR));
          default:
            throw new AssertionError(incidentEdgeOrder.type());
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertEquals(0, ArbitraryInstances.get(Buffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(CharBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(ByteBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(ShortBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(IntBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(LongBuffer.class).capacity());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

      public static <K extends @Nullable Object, V extends @Nullable Object>
          LinkedHashMultimap<K, V> create() {
        return new LinkedHashMultimap<>(DEFAULT_KEY_CAPACITY, DEFAULT_VALUE_SET_CAPACITY);
      }
    
      /**
       * Constructs an empty {@code LinkedHashMultimap} with enough capacity to hold the specified
       * numbers of keys and values without rehashing.
       *
       * @param expectedKeys the expected number of distinct keys
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

      /**
       * Creates a {@code CompactLinkedHashMap} instance, with a high enough "initial capacity" that it
       * <i>should</i> hold {@code expectedSize} elements without rebuilding internal data structures.
       *
       * @param expectedSize the number of elements you expect to add to the returned set
       * @return a new, empty {@code CompactLinkedHashMap} with enough capacity to hold {@code
       *     expectedSize} elements without resizing
    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)
  6. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        stopwatch.sleepMillis(1000); // max capacity reached
        stopwatch.sleepMillis(1000); // this makes no difference
        limiter.acquire(1); // R0.00, since it's the first request
    
        limiter.acquire(1); // R0.00, from capacity
        limiter.acquire(3); // R0.00, from capacity
        limiter.acquire(1); // R0.00, concluding a burst of 5 permits
    
        limiter.acquire(); // R0.20, capacity exhausted
        assertEvents(
    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)
  7. guava/src/com/google/common/collect/CompactLinkedHashSet.java

      /**
       * Creates a {@code CompactLinkedHashSet} instance, with a high enough "initial capacity" that it
       * <i>should</i> hold {@code expectedSize} elements without rebuilding internal data structures.
       *
       * @param expectedSize the number of elements you expect to add to the returned set
       * @return a new, empty {@code CompactLinkedHashSet} with enough capacity to hold {@code
       *     expectedSize} elements without resizing
    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)
  8. guava/src/com/google/common/collect/ImmutableList.java

         * ImmutableList#builder}.
         */
        public Builder() {
          this(DEFAULT_INITIAL_CAPACITY);
        }
    
        Builder(int capacity) {
          this.contents = new @Nullable Object[capacity];
          this.size = 0;
        }
    
        private void getReadyToExpandTo(int minCapacity) {
          if (contents.length < minCapacity) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  9. guava/src/com/google/common/collect/HashBiMap.java

    public final class HashBiMap<K extends @Nullable Object, V extends @Nullable Object>
        extends IteratorBasedAbstractMap<K, V> implements BiMap<K, V>, Serializable {
    
      /** Returns a new, empty {@code HashBiMap} with the default initial capacity (16). */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create() {
        return create(16);
      }
    
      /**
       * Constructs a new, empty bimap with the specified expected size.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/LinkedListMultimap.java

      /** Creates a new, empty {@code LinkedListMultimap} with the default initial capacity. */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          LinkedListMultimap<K, V> create() {
        return new LinkedListMultimap<>();
      }
    
      /**
       * Constructs an empty {@code LinkedListMultimap} with enough capacity to hold the specified
       * number of keys without rehashing.
       *
    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)
Back to top