Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 441 for ImmutableList (0.2 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 27K bytes
    - Viewed (0)
  4. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.3K bytes
    - Viewed (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));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

      private static final ImmutableList<? extends List<Integer>> SAMPLE_INPUTS =
          ImmutableList.of(
              ImmutableList.<Integer>of(),
              ImmutableList.of(1),
              ImmutableList.of(2),
              ImmutableList.of(2, 3),
              ImmutableList.of(1, 2),
              ImmutableList.of(3, 5),
              ImmutableList.of(2, 4),
              ImmutableList.of(1, 2, 3, 5, 6, 8, 9));
    
      /*
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

        @Override
        protected List<String> create(String[] elements) {
          return ImmutableList.copyOf(elements);
        }
      }
    
      public static class BuilderAddListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
          ImmutableList.Builder<String> builder = ImmutableList.<String>builder();
          for (String element : elements) {
            builder.add(element);
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertEquals(type, returnType.getRawType());
        assertEquals(
            ImmutableList.copyOf(type.getTypeParameters()),
            ImmutableList.copyOf(returnType.getActualTypeArguments()));
      }
    
      public void testConstructor_exceptionTypes() throws Exception {
        assertEquals(
            ImmutableList.of(TypeToken.of(NullPointerException.class)),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CartesianList.java

      private final transient ImmutableList<List<E>> axes;
      private final transient int[] axesSizeProduct;
    
      static <E> List<List<E>> create(List<? extends List<? extends E>> lists) {
        ImmutableList.Builder<List<E>> axesBuilder = new ImmutableList.Builder<>(lists.size());
        for (List<? extends E> list : lists) {
          List<E> copy = ImmutableList.copyOf(list);
          if (copy.isEmpty()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

        runConcurrentlyMutatedTest(elements(1, 2, 3), ops(remove(), remove()), wrap);
      }
    
      private static ImmutableList<Integer> elements(Integer... elements) {
        return ImmutableList.copyOf(elements);
      }
    
      private static ImmutableList<ListFrobber> ops(ListFrobber... elements) {
        return ImmutableList.copyOf(elements);
      }
    
      public void testCopyOf_concurrentlyMutatedList() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 6.6K bytes
    - Viewed (0)
Back to top