Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 317 for ImmutableList (0.15 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/collect/ImmutableList.java

       * undocumented and subject to change.
       *
       * <p>Note that if {@code list} is a {@code List<String>}, then {@code ImmutableList.copyOf(list)}
       * returns an {@code ImmutableList<String>} containing each of the strings in {@code list}, while
       * {@code ImmutableList.of(list)} returns an {@code ImmutableList<List<String>>} containing one
       * element (the given list itself).
       *
    Created: 2026-04-03 12:43
    - Last Modified: 2025-09-23 17:50
    - 27.5K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

      @SuppressWarnings("unchecked")
      public static <E> ImmutableList<E> of() {
        return (ImmutableList<E>) RegularImmutableList.EMPTY;
      }
    
      public static <E> ImmutableList<E> of(E e1) {
        return new SingletonImmutableList<E>(checkNotNull(e1));
      }
    
      public static <E> ImmutableList<E> of(E e1, E e2) {
        return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(e1, e2));
      }
    
    Created: 2026-04-03 12:43
    - Last Modified: 2025-08-06 18:32
    - 11.1K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableList.java

       * undocumented and subject to change.
       *
       * <p>Note that if {@code list} is a {@code List<String>}, then {@code ImmutableList.copyOf(list)}
       * returns an {@code ImmutableList<String>} containing each of the strings in {@code list}, while
       * {@code ImmutableList.of(list)} returns an {@code ImmutableList<List<String>>} containing one
       * element (the given list itself).
       *
    Created: 2026-04-03 12:43
    - Last Modified: 2026-03-08 16:16
    - 30.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        ImmutableList<Integer>[] array =
            (ImmutableList<Integer>[]) new ImmutableList<?>[] {ImmutableList.of(1)};
        TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {};
        ImmutableTypeToInstanceMap<Iterable<?>[]> map =
            ImmutableTypeToInstanceMap.<Iterable<?>[]>builder().put(type, array).build();
        assertEquals(1, map.size());
    Created: 2026-04-03 12:43
    - Last Modified: 2024-12-19 18:03
    - 6.9K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {};
        map.putInstance(type, array);
        assertEquals(1, map.size());
        assertThat(map.getInstance(type)).asList().containsExactly(array[0]);
      }
    
      public void testWildcardType() {
        TypeToken<ImmutableList<?>> type = new TypeToken<ImmutableList<?>>() {};
        map.putInstance(type, ImmutableList.of(1));
    Created: 2026-04-03 12:43
    - Last Modified: 2025-10-28 16:03
    - 8.1K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/math/StatsTesting.java

        }
    
        private static ImmutableList<ManyValues> createAll() {
          ImmutableList.Builder<ManyValues> builder = ImmutableList.builder();
          double[] values = new double[5];
          for (double first : ImmutableList.of(1.1, POSITIVE_INFINITY, NEGATIVE_INFINITY, NaN)) {
            values[0] = first;
            values[1] = -44.44;
            for (double third : ImmutableList.of(33.33, POSITIVE_INFINITY, NEGATIVE_INFINITY, NaN)) {
    Created: 2026-04-03 12:43
    - Last Modified: 2026-03-03 05:21
    - 24K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Collection<String> c = ImmutableList.of();
        assertThat(ImmutableList.copyOf(c)).isSameInstanceAs(c);
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = ImmutableList.of("a");
        assertThat(ImmutableList.copyOf(c)).isSameInstanceAs(c);
      }
    
      public void testCopyOf_shortcut_immutableList() {
        Collection<String> c = ImmutableList.of("a", "b", "c");
    Created: 2026-04-03 12:43
    - Last Modified: 2026-03-13 13:01
    - 24.4K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java

            : result;
      }
    
      private static final class InverseEntries<K extends @Nullable Object, V extends @Nullable Object>
          extends ImmutableList<Entry<V, K>> {
        private final ImmutableList<Entry<K, V>> entries;
    
        InverseEntries(ImmutableList<Entry<K, V>> entries) {
          this.entries = entries;
        }
    
        @Override
        public Entry<V, K> get(int index) {
    Created: 2026-04-03 12:43
    - Last Modified: 2025-09-23 17:50
    - 4.9K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/ComparatorsTest.java

        Comparator<Iterable<String>> lexy = Comparators.lexicographical(comparator);
    
        ImmutableList<String> empty = ImmutableList.of();
        ImmutableList<String> a = ImmutableList.of("a");
        ImmutableList<String> aa = ImmutableList.of("a", "a");
        ImmutableList<String> ab = ImmutableList.of("a", "b");
        ImmutableList<String> b = ImmutableList.of("b");
    
        testComparator(lexy, empty, a, aa, ab, b);
    
        new EqualsTester()
    Created: 2026-04-03 12:43
    - Last Modified: 2025-04-12 15:07
    - 6.4K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {};
        map.putInstance(type, array);
        assertEquals(1, map.size());
        assertThat(map.getInstance(type)).asList().containsExactly(array[0]);
      }
    
      public void testWildcardType() {
        TypeToken<ImmutableList<?>> type = new TypeToken<ImmutableList<?>>() {};
        map.putInstance(type, ImmutableList.of(1));
    Created: 2026-04-03 12:43
    - Last Modified: 2025-10-28 16:03
    - 8.1K bytes
    - Click Count (0)
Back to Top