Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 86 for scopes (0.15 sec)

  1. guava/src/com/google/common/collect/ImmutableRangeMap.java

          checkNotNull(value);
          checkArgument(!range.isEmpty(), "Range must not be empty, but was %s", range);
          entries.add(Maps.immutableEntry(range, value));
          return this;
        }
    
        /** Copies all associations from the specified range map into this builder. */
        @CanIgnoreReturnValue
        public Builder<K, V> putAll(RangeMap<K, ? extends V> rangeMap) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            segment.expand();
          }
          assertEquals(i, segment.table.length());
          assertEquals(liveCount, countLiveEntries(map));
          // expansion cleanup is sloppy, with a goal of avoiding unnecessary copies
          assertTrue(segment.count >= liveCount);
          assertTrue(segment.count <= originalCount);
          assertEquals(originalMap, ImmutableMap.copyOf(map));
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            segment.expand();
          }
          assertEquals(i, segment.table.length());
          assertEquals(liveCount, countLiveEntries(map));
          // expansion cleanup is sloppy, with a goal of avoiding unnecessary copies
          assertTrue(segment.count >= liveCount);
          assertTrue(segment.count <= originalCount);
          assertEquals(originalMap, ImmutableMap.copyOf(map));
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multisets.java

          Multiset<E> self, Multiset<? extends E> elements) {
        // It'd be nice if we could specialize for ImmutableMultiset here without also retaining
        // its code when it's not in scope...
        if (elements instanceof AbstractMapBasedMultiset) {
          return addAllImpl(self, (AbstractMapBasedMultiset<? extends E>) elements);
        } else if (elements.isEmpty()) {
          return false;
        } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableList.java

       */
      static <E> ImmutableList<E> asImmutableList(Object[] elements) {
        return asImmutableList(elements, elements.length);
      }
    
      /**
       * Views the array as an immutable list. Copies if the specified range does not cover the complete
       * array. Does not check for nulls.
       */
      static <E> ImmutableList<E> asImmutableList(@Nullable Object[] elements, int length) {
        switch (length) {
          case 0:
    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. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

          "\0abyz\u0080\u0100\u0800\u1000ABYZ\uffff" + SMALLEST_SURROGATE + "0189" + LARGEST_SURROGATE;
    
      // Escapes nothing
      private static final UnicodeEscaper NOP_ESCAPER =
          new UnicodeEscaper() {
            @Override
            protected char @Nullable [] escape(int c) {
              return null;
            }
          };
    
      // Escapes everything except [a-zA-Z0-9]
      private static final UnicodeEscaper SIMPLE_ESCAPER =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Strings.java

        return Platform.stringIsNullOrEmpty(string);
      }
    
      /**
       * Returns a string, of length at least {@code minLength}, consisting of {@code string} prepended
       * with as many copies of {@code padChar} as are necessary to reach that length. For example,
       *
       * <ul>
       *   <li>{@code padStart("7", 3, '0')} returns {@code "007"}
       *   <li>{@code padStart("2010", 3, '0')} returns {@code "2010"}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Predicates.java

       * {@code true}. The components are evaluated in order, and evaluation will be "short-circuited"
       * as soon as a false predicate is found. It defensively copies the iterable passed in, so future
       * changes to it won't alter the behavior of this predicate. If {@code components} is empty, the
       * returned predicate will always evaluate to {@code true}.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/PercentEscaper.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.escape.UnicodeEscaper;
    import javax.annotation.CheckForNull;
    
    /**
     * A {@code UnicodeEscaper} that escapes some set of Java characters using a UTF-8 based percent
     * encoding scheme. The set of safe characters (those which remain unescaped) can be specified on
     * construction.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/TopKSelectorTest.java

            };
        TopKSelector<Integer> top = TopKSelector.least(k, cmp);
        top.offer(1);
        for (int i = 1; i < n; i++) {
          top.offer(0);
        }
        assertThat(top.topK()).containsExactlyElementsIn(Collections.nCopies(k, 0));
        assertThat(compareCalls[0]).isAtMost(10L * n * IntMath.log2(k, RoundingMode.CEILING));
      }
    
      public void testExceedMaxIteration() {
        /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top