Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for buildSorted (0.09 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

          contents.addAll(builder.contents);
          return this;
        }
    
        @Override
        public ImmutableList<E> build() {
          return copyOf(contents);
        }
    
        ImmutableList<E> buildSorted(Comparator<? super E> comparator) {
          Collections.sort(contents, comparator);
          return copyOf(contents);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 22:14:46 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableListMultimap.java

          K key = entry.getKey();
          ImmutableList.Builder<V> values = (ImmutableList.Builder<V>) entry.getValue();
          ImmutableList<V> list =
              (valueComparator == null) ? values.build() : values.buildSorted(valueComparator);
          builder.put(key, list);
          size += list.size();
        }
    
        return new ImmutableListMultimap<>(builder.buildOrThrow(), size);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 20:20:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableList.java

         * Returns a newly-created {@code ImmutableList} based on the contents of the {@code Builder},
         * sorted according to the specified comparator.
         */
        @SuppressWarnings("unchecked")
        ImmutableList<E> buildSorted(Comparator<? super E> comparator) {
          // Currently only used by ImmutableListMultimap.Builder.orderValuesBy.
          // In particular, this implies that the comparator can never get "removed," so this can't
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

          K key = entry.getKey();
          ImmutableList.Builder<V> values = (ImmutableList.Builder<V>) entry.getValue();
          ImmutableList<V> list =
              (valueComparator == null) ? values.build() : values.buildSorted(valueComparator);
          builder.put(key, list);
          size += list.size();
        }
    
        return new ImmutableListMultimap<>(builder.buildOrThrow(), size);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableList.java

         * Returns a newly-created {@code ImmutableList} based on the contents of the {@code Builder},
         * sorted according to the specified comparator.
         */
        @SuppressWarnings("unchecked")
        ImmutableList<E> buildSorted(Comparator<? super E> comparator) {
          // Currently only used by ImmutableListMultimap.Builder.orderValuesBy.
          // In particular, this implies that the comparator can never get "removed," so this can't
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top