Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 209 of 209 for newArrayList (0.07 sec)

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

        return generateArrayList(freshElement);
      }
    
      @Generates
      static <E> ArrayList<E> generateArrayList(@Nullable E freshElement) {
        ArrayList<E> list = Lists.newArrayList();
        list.add(freshElement);
        return list;
      }
    
      @Generates
      static <E> LinkedList<E> generateLinkedList(@Nullable E freshElement) {
        LinkedList<E> list = Lists.newLinkedList();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterators.java

       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] toArray(
          Iterator<? extends T> iterator, Class<@NonNull T> type) {
        List<T> list = Lists.newArrayList(iterator);
        return Iterables.<T>toArray(list, type);
      }
    
      /**
       * Adds all elements in {@code iterator} to {@code collection}. The iterator will be left
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return generateArrayList(freshElement);
      }
    
      @Generates
      static <E> ArrayList<E> generateArrayList(@Nullable E freshElement) {
        ArrayList<E> list = Lists.newArrayList();
        list.add(freshElement);
        return list;
      }
    
      @Generates
      static <E> LinkedList<E> generateLinkedList(@Nullable E freshElement) {
        LinkedList<E> list = Lists.newLinkedList();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Maps.java

          // creating an ArrayList so filtering happens once
          return Lists.newArrayList(iterator()).toArray();
        }
    
        @Override
        @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
        public <T extends @Nullable Object> T[] toArray(T[] array) {
          return Lists.newArrayList(iterator()).toArray(array);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Maps.java

          // creating an ArrayList so filtering happens once
          return Lists.newArrayList(iterator()).toArray();
        }
    
        @Override
        @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
        public <T extends @Nullable Object> T[] toArray(T[] array) {
          return Lists.newArrayList(iterator()).toArray(array);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Files.java

        return asCharSource(file, charset)
            .readLines(
                new LineProcessor<List<String>>() {
                  final List<String> result = Lists.newArrayList();
    
                  @Override
                  public boolean processLine(String line) {
                    result.add(line);
                    return true;
                  }
    
                  @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       */
      public static <E> ImmutableSortedMultiset<E> copyOfSorted(SortedMultiset<E> sortedMultiset) {
        return copyOfSortedEntries(
            sortedMultiset.comparator(), Lists.newArrayList(sortedMultiset.entrySet()));
      }
    
      private static <E> ImmutableSortedMultiset<E> copyOfSortedEntries(
          Comparator<? super E> comparator, Collection<Entry<E>> entries) {
        if (entries.isEmpty()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/Files.java

        return asCharSource(file, charset)
            .readLines(
                new LineProcessor<List<String>>() {
                  final List<String> result = Lists.newArrayList();
    
                  @Override
                  public boolean processLine(String line) {
                    result.add(line);
                    return true;
                  }
    
                  @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

        // quadratic cost of adding them to the COWAS directly.
        Collection<? extends E> elementsCollection =
            (elements instanceof Collection)
                ? (Collection<? extends E>) elements
                : Lists.newArrayList(elements);
        return new CopyOnWriteArraySet<>(elementsCollection);
      }
    
      /**
       * Creates an {@code EnumSet} consisting of all enum values that are not in the specified
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top