Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 409 for AsList (0.03 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          return ImmutableSet.copyOf(elements).asList();
        }
      }
    
      public static class ImmutableSortedSetAsListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
          Comparator<String> comparator = createExplicitComparator(elements);
          ImmutableSet<String> set = ImmutableSortedSet.copyOf(comparator, asList(elements));
          return set.asList();
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.testing.Helpers.mapEntry;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableSortedMap;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.testing.SampleElements;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/DoublesTest.java

        // need explicit type parameter to avoid javac warning!?
        List<Double> none = Arrays.<Double>asList();
        assertThat(Doubles.toArray(none)).isEqualTo(EMPTY);
    
        List<Double> one = Arrays.asList(1.0);
        assertThat(Doubles.toArray(one)).isEqualTo(ARRAY1);
    
        double[] array = {0.0, 1.0, Math.PI};
    
        List<Double> three = Arrays.asList(0.0, 1.0, Math.PI);
        assertThat(Doubles.toArray(three)).isEqualTo(array);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/LongsTest.java

        // need explicit type parameter to avoid javac warning!?
        List<Long> none = Arrays.<Long>asList();
        assertThat(Longs.toArray(none)).isEqualTo(EMPTY);
    
        List<Long> one = Arrays.asList(1L);
        assertThat(Longs.toArray(one)).isEqualTo(ARRAY1);
    
        long[] array = {0L, 1L, 0x0FF1C1AL};
    
        List<Long> three = Arrays.asList(0L, 1L, 0x0FF1C1AL);
        assertThat(Longs.toArray(three)).isEqualTo(array);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/ShortsTest.java

        List<Float> floats = Arrays.asList(0.0f, 1.0f, 2.0f);
        List<Long> longs = Arrays.asList(0L, 1L, 2L);
        List<Double> doubles = Arrays.asList(0.0, 1.0, 2.0);
    
        assertThat(Shorts.toArray(bytes)).isEqualTo(array);
        assertThat(Shorts.toArray(shorts)).isEqualTo(array);
        assertThat(Shorts.toArray(ints)).isEqualTo(array);
        assertThat(Shorts.toArray(floats)).isEqualTo(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java

    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.testing.Helpers.copyToSet;
    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_PUT;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.SetMultimap;
    import com.google.common.collect.testing.features.MapFeature;
    import java.util.List;
    import java.util.Set;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/HashingTest.java

        new EqualsTester()
            .addEqualityGroup(Hashing.concatenating(asList(Hashing.md5())))
            .addEqualityGroup(Hashing.concatenating(asList(Hashing.murmur3_32())))
            .addEqualityGroup(
                Hashing.concatenating(Hashing.md5(), Hashing.md5()),
                Hashing.concatenating(asList(Hashing.md5(), Hashing.md5())))
            .addEqualityGroup(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertEquals(ImmutableMap.of(1, 1), cache.getAll(asList(1)));
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(1, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        assertEquals(ImmutableMap.of(1, 1, 2, 2, 3, 3, 4, 4), cache.getAll(asList(1, 2, 3, 4)));
        stats = cache.stats();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/RangeTest.java

      }
    
      public void testEncloseAll() {
        assertEquals(Range.closed(0, 0), Range.encloseAll(asList(0)));
        assertEquals(Range.closed(-3, 5), Range.encloseAll(asList(5, -3)));
        assertEquals(Range.closed(-3, 5), Range.encloseAll(asList(1, 2, 2, 2, 5, -3, 0, -1)));
      }
    
      public void testEncloseAll_empty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Booleans.java

          array[i] = (Boolean) checkNotNull(boxedArray[i]);
        }
        return array;
      }
    
      /**
       * Returns a fixed-size list backed by the specified array, similar to {@link
       * Arrays#asList(Object[])}. The list supports {@link List#set(int, Object)}, but any attempt to
       * set a value to {@code null} will result in a {@link NullPointerException}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top