Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 218 for ImmutableList (0.21 sec)

  1. 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).
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  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 element) {
        return new SingletonImmutableList<E>(checkNotNull(element));
      }
    
      public static <E> ImmutableList<E> of(E e1, E e2) {
        return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(e1, e2));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 11K bytes
    - Viewed (0)
  3. 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).
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Collection<String> c = ImmutableList.of();
        assertSame(c, ImmutableList.copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = ImmutableList.of("a");
        assertSame(c, ImmutableList.copyOf(c));
      }
    
      public void testCopyOf_shortcut_immutableList() {
        Collection<String> c = ImmutableList.of("a", "b", "c");
        assertSame(c, ImmutableList.copyOf(c));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  5. android/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());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  6. 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));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  7. 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());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. 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)) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 23.8K bytes
    - Viewed (0)
  9. android/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");
    
        Helpers.testComparator(lexy, empty, a, aa, ab, b);
    
        new EqualsTester()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

          return (ImmutableRangeMap<K, V>) rangeMap;
        }
        Map<Range<K>, ? extends V> map = rangeMap.asMapOfRanges();
        ImmutableList.Builder<Range<K>> rangesBuilder = new ImmutableList.Builder<>(map.size());
        ImmutableList.Builder<V> valuesBuilder = new ImmutableList.Builder<>(map.size());
        for (Entry<Range<K>, ? extends V> entry : map.entrySet()) {
          rangesBuilder.add(entry.getKey());
          valuesBuilder.add(entry.getValue());
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
Back to top