Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for orderedBy (0.51 sec)

  1. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

       */
      static final class InvertedMinMaxPriorityQueue<T> extends ForwardingQueue<T> {
        MinMaxPriorityQueue<T> mmHeap;
    
        public InvertedMinMaxPriorityQueue(Comparator<T> comparator) {
          mmHeap = MinMaxPriorityQueue.orderedBy(comparator).create();
        }
    
        @Override
        protected Queue<T> delegate() {
          return mmHeap;
        }
    
        @Override
        public @Nullable T poll() {
          return mmHeap.pollLast();
        }
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparatorTest.java

        }
    
        @Test
        void testSameWeightOrdering() {
            // Test that projects with the same weight are ordered by project ID
            // Projects B and C both have weight 2, so they should be ordered by project ID
            List<MavenProject> projects = Arrays.asList(
                    ProjectDependencyGraphStub.C, // weight=2, ID contains "C"
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Aug 06 12:03:40 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparator.java

     *
     * <p>Projects are then sorted by weight in descending order, ensuring that
     * projects with longer dependency chains are built first. When projects have
     * the same weight, they are ordered by project ID for deterministic results.
     *
     * <p><b>Example:</b>
     * <p>Consider projects with dependencies: A → B → D, A → C → D
     * <ul>
     * <li>Project D: weight = 1 (no downstream dependencies)</li>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Aug 06 12:03:40 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
      }
    
      @Test
      public void immutableGraphBuilder_putEdgeFromEndpointPair() {
        ImmutableGraph<String> graph =
            GraphBuilder.directed().<String>immutable().putEdge(EndpointPair.ordered("A", "B")).build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

                .putEdgeValue(1, 2, "1-2")
                .build();
    
        assertThat(graph.incidentEdges(2))
            .containsExactly(
                EndpointPair.ordered(2, 1), EndpointPair.ordered(2, 3), EndpointPair.ordered(1, 2))
            .inOrder();
      }
    
      @Test
      public void immutableValueGraphBuilder_incidentEdgeOrder_stable() {
        ImmutableValueGraph<Integer, String> graph =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 17:09:51 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ConcurrencyDependencyGraph.java

        }
    
        public int getNumberOfBuilds() {
            return projectBuilds.size();
        }
    
        /**
         * Gets all the builds that have no reactor-dependencies, ordered by critical path priority
         *
         * @return A list of all the initial builds, ordered by priority (critical path first)
         */
        public List<MavenProject> getRootSchedulableBuilds() {
            Set<MavenProject> result = new LinkedHashSet<>();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java

      public void testForEachKnownOrder() {
        List<E> elements = new ArrayList<>();
        collection.forEach(elements::add);
        List<E> expected = Helpers.copyToList(getOrderedElements());
        assertEquals("Different ordered iteration", expected, elements);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/DuplicateHostService.java

            });
    
        }
    
        /**
         * Retrieves all duplicate host configurations without pagination.
         *
         * <p>This method returns all duplicate host configurations in the system,
         * ordered by sort order, regular name, and duplicate hostname. The results
         * are limited by the configured maximum fetch size to prevent memory issues.</p>
         *
         * @return a list of all DuplicateHost entities
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SortedIterable.java

     */
    @GwtCompatible
    interface SortedIterable<T extends @Nullable Object> extends Iterable<T> {
      /**
       * Returns the {@code Comparator} by which the elements of this iterable are ordered, or {@code
       * Ordering.natural()} if the elements are ordered by their natural ordering.
       */
      Comparator<? super T> comparator();
    
      /**
       * Returns an iterator over elements of type {@code T}. The elements are returned in nondecreasing
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/SortedIterable.java

     */
    @GwtCompatible
    interface SortedIterable<T extends @Nullable Object> extends Iterable<T> {
      /**
       * Returns the {@code Comparator} by which the elements of this iterable are ordered, or {@code
       * Ordering.natural()} if the elements are ordered by their natural ordering.
       */
      Comparator<? super T> comparator();
    
      /**
       * Returns an iterator over elements of type {@code T}. The elements are returned in nondecreasing
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top