Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 167 for comparators (0.05 sec)

  1. 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)
  2. 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)
  3. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeSetTest.java

        assertEquals(set.comparator(), copy.comparator());
      }
    
      @GwtIncompatible // SerializableTester
      public void testSingle_serialization() {
        SortedSet<String> set = new SafeTreeSet<>();
        set.add("e");
        SortedSet<String> copy = SerializableTester.reserializeAndAssert(set);
        assertEquals(set.comparator(), copy.comparator());
      }
    
      @GwtIncompatible // SerializableTester
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. guava-tests/test/com/google/common/collect/ComparisonChainTest.java

    import static java.lang.Integer.signum;
    import static java.util.Comparator.comparing;
    import static java.util.Comparator.naturalOrder;
    import static java.util.Comparator.nullsLast;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.primitives.Booleans;
    import java.util.Comparator;
    import junit.framework.AssertionFailedError;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:05:13 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  10. 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)
Back to top