Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 125 for Ordering (0.1 seconds)

  1. guava/src/com/google/common/collect/Ordering.java

          replacement = "checkNotNull(ordering)",
          staticImports = "com.google.common.base.Preconditions.checkNotNull")
      @Deprecated
      public static <T extends @Nullable Object> Ordering<T> from(Ordering<T> ordering) {
        return checkNotNull(ordering);
      }
    
      /**
       * Returns an ordering that compares objects according to the order in which they appear in the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 39.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Ordering.java

          replacement = "checkNotNull(ordering)",
          staticImports = "com.google.common.base.Preconditions.checkNotNull")
      @Deprecated
      public static <T extends @Nullable Object> Ordering<T> from(Ordering<T> ordering) {
        return checkNotNull(ordering);
      }
    
      /**
       * Returns an ordering that compares objects according to the order in which they appear in the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 39.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        testComparator(arbitrary, list);
      }
    
      public void testUsingToString() {
        Ordering<Object> ordering = Ordering.usingToString();
        testComparator(ordering, 1, 12, 124, 2);
        assertThat(ordering.toString()).isEqualTo("Ordering.usingToString()");
        assertThat(reserialize(ordering)).isSameInstanceAs(ordering);
      }
    
      // use an enum to get easy serializability
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/OrderingTest.java

        testComparator(arbitrary, list);
      }
    
      public void testUsingToString() {
        Ordering<Object> ordering = Ordering.usingToString();
        testComparator(ordering, 1, 12, 124, 2);
        assertThat(ordering.toString()).isEqualTo("Ordering.usingToString()");
        assertThat(reserialize(ordering)).isSameInstanceAs(ordering);
      }
    
      // use an enum to get easy serializability
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/NaturalOrdering.java

        Ordering<@Nullable Comparable<?>> result = nullsLast;
        if (result == null) {
          result = nullsLast = super.<Comparable<?>>nullsLast();
        }
        return (Ordering<@Nullable S>) result;
      }
    
      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
      public <S extends Comparable<?>> Ordering<S> reverse() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 01:34:19 GMT 2026
    - 3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/NaturalOrdering.java

        Ordering<@Nullable Comparable<?>> result = nullsLast;
        if (result == null) {
          result = nullsLast = super.<Comparable<?>>nullsLast();
        }
        return (Ordering<@Nullable S>) result;
      }
    
      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
      public <S extends Comparable<?>> Ordering<S> reverse() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 01:34:19 GMT 2026
    - 3K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/graph/ElementOrder.java

      /**
       * The type of ordering that this object specifies.
       *
       * <ul>
       *   <li>UNORDERED: no order is guaranteed.
       *   <li>STABLE: ordering is guaranteed to follow a pattern that won't change between releases.
       *       Some methods may have stronger guarantees.
       *   <li>INSERTION: insertion ordering is guaranteed.
       *   <li>SORTED: ordering according to a supplied comparator is guaranteed.
       * </ul>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/graph/ElementOrderTest.java

    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.collect.Ordering;
    import java.util.Comparator;
    import org.jspecify.annotations.NullUnmarked;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    /** Tests for ordering the elements of graphs. */
    @RunWith(JUnit4.class)
    @NullUnmarked
    public final class ElementOrderTest {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 7.9K bytes
    - Click Count (0)
  9. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     * {@link PriorityQueue} and supplies blocking retrieval operations. While this queue is logically
     * unbounded, attempted additions may fail due to resource exhaustion (causing {@code
     * OutOfMemoryError}). This class does not permit {@code null} elements. A priority queue relying on
     * {@linkplain Comparable natural ordering} also does not permit insertion of non-comparable objects
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 19K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        lockA.lock();
      }
    
      // Tests transitive deadlock detection.
      public void testDeadlock_threeLocks() {
        // Establish an ordering from lockA -> lockB.
        lockA.lock();
        lockB.lock();
        lockB.unlock();
        lockA.unlock();
    
        // Establish an ordering from lockB -> lockC.
        lockB.lock();
        lockC.lock();
        lockB.unlock();
    
        // lockC -> lockA should fail.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
Back to Top