Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 308 for orderings (0.07 seconds)

  1. 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 Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 16.2K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

        return copyOfInternal((Ordering<E>) Ordering.natural(), (Collection<E>) elements, false);
      }
    
      // Unsafe, see ImmutableSortedSetFauxverideShim.
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSortedSet<E> copyOf(Iterable<? extends E> elements) {
        return copyOfInternal((Ordering<E>) Ordering.natural(), (Iterable<E>) elements, false);
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparator.java

            this.dependencyGraph = dependencyGraph;
            this.projectWeights = new ConcurrentHashMap<>();
            this.comparator = createComparator();
        }
    
        /**
         * Gets the comparator for ordering projects by critical path priority.
         *
         * @return comparator that orders projects with longer dependency chains first
         */
        public Comparator<MavenProject> getComparator() {
            return comparator;
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Aug 06 12:03:40 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. 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 Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  5. 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 Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/TreeMultimap.java

     * according to the key comparator ordering or the natural ordering of the keys. Similarly, {@code
     * get}, {@code removeAll}, and {@code replaceValues} return collections that iterate through the
     * values according to the value comparator ordering or the natural ordering of the values. The
     * collections generated by {@code entries}, {@code keys}, and {@code values} iterate across the
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/SortedIterablesTest.java

        assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet()));
        assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet()));
        assertTrue(
            SortedIterables.hasSameComparator(
                Ordering.natural().reverse(), Sets.newTreeSet(Ordering.natural().reverse())));
      }
    
      public void testComparator() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/ReverseOrdering.java

    import java.io.Serializable;
    import java.util.Iterator;
    import org.jspecify.annotations.Nullable;
    
    /** An ordering that uses the reverse of a given order. */
    @GwtCompatible
    final class ReverseOrdering<T extends @Nullable Object> extends Ordering<T>
        implements Serializable {
      final Ordering<? super T> forwardOrder;
    
      ReverseOrdering(Ordering<? super T> forwardOrder) {
        this.forwardOrder = checkNotNull(forwardOrder);
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      @WeakOuter
      private final class Heap {
        final Ordering<E> ordering;
    
        @SuppressWarnings("nullness:initialization.field.uninitialized")
        @Weak
        Heap otherHeap; // always initialized immediately after construction
    
        Heap(Ordering<E> ordering) {
          this.ordering = ordering;
        }
    
        int compareElements(int a, int b) {
          return ordering.compare(elementData(a), elementData(b));
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 33.9K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

      @SuppressWarnings("unchecked")
      static final Comparator<?> NATURAL_ORDER = Ordering.natural();
    
      private final transient SortedMap<K, V> sortedDelegate;
    
      // The comparator used by this map.  It's the same as that of sortedDelegate,
      // except that when sortedDelegate's comparator is null, it points to a
      // non-null instance of Ordering.natural().
      // (cpovirk: Is sortedDelegate's comparator really ever null?)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 16.1K bytes
    - Click Count (0)
Back to Top