Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 165 for Comparators (0.22 sec)

  1. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         * @param comparator the comparator for ordering the elements in the priority queue
         * @return a new instance of {@link PriorityBlockingQueue}
         * @see PriorityBlockingQueue#PriorityBlockingQueue(int, Comparator)
         */
        public static <E> PriorityBlockingQueue<E> newPriorityBlockingQueue(final int initialCapacity, final Comparator<? super E> comparator) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        assertEquals("a", elementSet.last());
        assertEquals(comparator, elementSet.comparator());
      }
    
      public void testNullAcceptingComparator() throws Exception {
        Comparator<@Nullable String> comparator = Ordering.<String>natural().<String>nullsFirst();
        TreeMultiset<@Nullable String> ms = TreeMultiset.create(comparator);
    
        ms.add("b");
        ms.add(null);
        ms.add("a");
        ms.add("b");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

        final E lastInclusive;
        private final Comparator<? super E> comparator;
        private final TestSortedSetGenerator<E> delegate;
    
        public SortedSetSubsetTestSetGenerator(
            TestSortedSetGenerator<E> delegate, Bound to, Bound from) {
          this.to = to;
          this.from = from;
          this.delegate = delegate;
    
          SortedSet<E> emptySet = delegate.create();
          this.comparator = emptySet.comparator();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/SortedMultisets.java

        }
    
        @Override
        public Iterator<E> iterator() {
          return Multisets.elementIterator(multiset().entrySet().iterator());
        }
    
        @Override
        public Comparator<? super E> comparator() {
          return multiset().comparator();
        }
    
        @Override
        public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

            // Clear execution order before test
            PriorityTrackingBooster.clearExecutionOrder();
    
            scoreUpdater.execute();
    
            // Due to integer overflow in comparator, execution order is affected for extreme values
            // The comparator b2 - b1 with MAX_VALUE and MIN_VALUE causes overflow
            List<Integer> executionOrder = PriorityTrackingBooster.getExecutionOrder();
            assertEquals(3, executionOrder.size());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

              Comparator<? super E> comparator = spliterator.getComparator();
              if (comparator == null) {
                // A sorted spliterator with no comparator is already using natural order.
                // (We could probably find a way to avoid rawtypes here if we wanted.)
                @SuppressWarnings({"unchecked", "rawtypes"})
                Comparator<? super E> naturalOrder =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

              Comparator<? super E> comparator = spliterator.getComparator();
              if (comparator == null) {
                // A sorted spliterator with no comparator is already using natural order.
                // (We could probably find a way to avoid rawtypes here if we wanted.)
                @SuppressWarnings({"unchecked", "rawtypes"})
                Comparator<? super E> naturalOrder =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CollectCollectors.java

        return (Collector) TO_IMMUTABLE_SET;
      }
    
      static <E> Collector<E, ?, ImmutableSortedSet<E>> toImmutableSortedSet(
          Comparator<? super E> comparator) {
        checkNotNull(comparator);
        return Collector.of(
            () -> new ImmutableSortedSet.Builder<E>(comparator),
            ImmutableSortedSet.Builder::add,
            ImmutableSortedSet.Builder::combine,
            ImmutableSortedSet.Builder::build);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CollectCollectors.java

        return (Collector) TO_IMMUTABLE_SET;
      }
    
      static <E> Collector<E, ?, ImmutableSortedSet<E>> toImmutableSortedSet(
          Comparator<? super E> comparator) {
        checkNotNull(comparator);
        return Collector.of(
            () -> new ImmutableSortedSet.Builder<E>(comparator),
            ImmutableSortedSet.Builder::add,
            ImmutableSortedSet.Builder::combine,
            ImmutableSortedSet.Builder::build);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ForwardingSortedMultiset.java

        /** Constructor for use by subclasses. */
        public StandardElementSet() {
          super(ForwardingSortedMultiset.this);
        }
      }
    
      @Override
      public Comparator<? super E> comparator() {
        return delegate().comparator();
      }
    
      @Override
      public SortedMultiset<E> descendingMultiset() {
        return delegate().descendingMultiset();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top