Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for buildSorted (0.05 sec)

  1. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  2. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
Back to top