Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for overload (0.05 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        assertTrue(set instanceof SingletonImmutableSet);
        assertEquals(Lists.newArrayList("a"), Lists.newArrayList(set));
      }
    
      public void testCreation_oneDuplicate() {
        // now we'll get the varargs overload
        ImmutableSet<String> set =
            ImmutableSet.of("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "a");
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

          allEntries.addAll(normalValues);
          SortedSet<E> set = delegate.create(allEntries.toArray());
    
          return createSubSet(set, firstExclusive, lastExclusive);
        }
    
        /** Calls the smallest subSet overload that filters out the extreme values. */
        SortedSet<E> createSubSet(SortedSet<E> set, E firstExclusive, E lastExclusive) {
          if (from == Bound.NO_BOUND && to == Bound.EXCLUSIVE) {
            return set.headSet(lastExclusive);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@link FakeTicker}.
     *
     * @author Jige Yu
     */
    @GwtCompatible(emulated = true)
    // We also want to test the TimeUnit overload (especially under GWT, where it's the only option).
    @SuppressWarnings("SetAutoIncrementStep_Nanos")
    public class FakeTickerTest extends TestCase {
    
      @GwtIncompatible // NullPointerTester
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 22 13:49:09 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Lists.java

       * advantage of <a
       * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
       * syntax</a>. (Unlike here, there is no risk of overload ambiguity, since the {@code ArrayList}
       * constructors very wisely did not accept varargs.)
       *
       * @param initialArraySize the exact size of the initial backing array for the returned array list
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

                    allEntries.addAll(normalValues);
                    SortedMultiset<E> multiset =
                        (SortedMultiset<E>) delegate.create(allEntries.toArray());
    
                    // call the smallest subMap overload that filters out the extreme
                    // values
                    if (from == Bound.INCLUSIVE) {
                      multiset = multiset.tailMultiset(firstInclusive, BoundType.CLOSED);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/CharSource.java

       * eagerly fetches data for each source when iterated (rather than producing sources that only
       * load data through their streams). Prefer using the {@link #concat(Iterable)} overload if
       * possible.
       *
       * @param sources the sources to concatenate
       * @return a {@code CharSource} containing the concatenated data
       * @throws NullPointerException if any of {@code sources} is {@code null}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/MoreFiles.java

            // If no OpenOptions were passed, delegate to Files.lines, which could have performance
            // advantages. (If OpenOptions were passed we can't, because Files.lines doesn't have an
            // overload taking OpenOptions, meaning we can't guarantee the same behavior w.r.t. things
            // like following/not following symlinks.)
            return new AsCharSource(charset) {
              @SuppressWarnings({
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/MoreFiles.java

            // If no OpenOptions were passed, delegate to Files.lines, which could have performance
            // advantages. (If OpenOptions were passed we can't, because Files.lines doesn't have an
            // overload taking OpenOptions, meaning we can't guarantee the same behavior w.r.t. things
            // like following/not following symlinks.)
            return new AsCharSource(charset) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterators.java

       * usually be handled more naturally using {@code tryFind(iterator, predicate).or(defaultValue)}.
       *
       * @since 7.0
       */
      // For discussion of this signature, see the corresponding overload of *Iterables*.find.
      @CheckForNull
      public static <T extends @Nullable Object> T find(
          Iterator<? extends T> iterator,
          Predicate<? super T> predicate,
          @CheckForNull T defaultValue) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

     *       hunt through classes like {@link Arrays} and {@link Longs} for them.
     *   <li>Supports a copy-free {@link #subArray} view, so methods that accept this type don't need to
     *       add overloads that accept start and end indexes.
     *   <li>Can be streamed without "breaking the chain": {@code foo.getBarLongs().stream()...}.
     *   <li>Access to all collection-based utilities via {@link #asList} (though at the cost of
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top