Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for orderedAbs (0.15 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/DefaultNodeInitializerRegistry.java

        }
    
        private ModelTypeInitializationException canNotConstructTypeException(NodeInitializerContext<?> context) {
            ImmutableSortedSet.Builder<ModelType<?>> constructibleTypes = ImmutableSortedSet.orderedBy(ModelTypes.displayOrder());
            for (NodeInitializerExtractionStrategy extractor : additionalStrategies) {
                for (ModelType<?> constructibleType : extractor.supportedTypes()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. pkg/kubelet/eviction/helpers_test.go

    	}
    	statsFn := func(pod *v1.Pod) (statsapi.PodStats, bool) {
    		result, found := stats[pod]
    		return result, found
    	}
    	pods := []*v1.Pod{below, exceeds}
    	orderedBy(exceedMemoryRequests(statsFn)).Sort(pods)
    
    	expected := []*v1.Pod{exceeds, below}
    	for i := range expected {
    		if pods[i] != expected[i] {
    			t.Errorf("Expected pod: %s, but got: %s", expected[i].Name, pods[i].Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  3. pkg/kubelet/eviction/helpers.go

    	cmp  []cmpFunc
    }
    
    // Sort sorts the argument slice according to the less functions passed to OrderedBy.
    func (ms *multiSorter) Sort(pods []*v1.Pod) {
    	ms.pods = pods
    	sort.Sort(ms)
    }
    
    // OrderedBy returns a Sorter that sorts using the cmp functions, in order.
    // Call its Sort method to sort the data.
    func orderedBy(cmp ...cmpFunc) *multiSorter {
    	return &multiSorter{
    		cmp: cmp,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     * creation time, the queue is unbounded.
     *
     * <p>Usage example:
     *
     * <pre>{@code
     * MinMaxPriorityQueue<User> users = MinMaxPriorityQueue.orderedBy(userComparator)
     *     .maximumSize(1000)
     *     .create();
     * }</pre>
     *
     * <p>As a {@link Queue} it functions exactly as a {@link PriorityQueue}: its head element -- the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     * creation time, the queue is unbounded.
     *
     * <p>Usage example:
     *
     * <pre>{@code
     * MinMaxPriorityQueue<User> users = MinMaxPriorityQueue.orderedBy(userComparator)
     *     .maximumSize(1000)
     *     .create();
     * }</pre>
     *
     * <p>As a {@link Queue} it functions exactly as a {@link PriorityQueue}: its head element -- the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/typeregistration/BaseInstanceFactory.java

            return builder.build();
        }
    
        @Override
        public Set<ModelType<? extends PUBLIC>> getSupportedTypes() {
            ImmutableSortedSet.Builder<ModelType<? extends PUBLIC>> supportedTypes = ImmutableSortedSet.orderedBy(ModelTypes.<PUBLIC>displayOrder());
            for (TypeRegistration<?> registration : registrations.values()) {
                if (registration.isConstructible()) {
                    supportedTypes.add(registration.publicType);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

          if (tmp == null) {
            return emptySet(comparator());
          }
          fromElement = tmp;
        }
        return tailSet(fromElement);
      }
    
      public static <E> Builder<E> orderedBy(Comparator<E> comparator) {
        return new Builder<E>(comparator);
      }
    
      public static <E extends Comparable<?>> Builder<E> reverseOrder() {
        return new Builder<E>(Ordering.natural().reverse());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        Comparator<String[]> comparator =
            Ordering.natural().lexicographical().onResultOf(Arrays::asList);
        String[] array = new String[] {"a"};
        Multiset<String[]> multiset = ImmutableSortedMultiset.orderedBy(comparator).add(array).build();
        Multiset<String[]> expected = HashMultiset.create();
        expected.add(array);
        assertEquals(expected, multiset);
      }
    
      public void testCreation_arrayContainingOnlyNull() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * SortedSet<Integer>} with a {@code Comparator<Number>}, use the {@link Builder} constructor
       * instead.
       *
       * @throws NullPointerException if {@code comparator} is null
       */
      public static <E> Builder<E> orderedBy(Comparator<E> comparator) {
        return new Builder<>(comparator);
      }
    
      /**
       * Returns a builder that creates immutable sorted sets whose elements are ordered by the reverse
       * of their natural ordering.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedSet.java

       * SortedSet<Integer>} with a {@code Comparator<Number>}, use the {@link Builder} constructor
       * instead.
       *
       * @throws NullPointerException if {@code comparator} is null
       */
      public static <E> Builder<E> orderedBy(Comparator<E> comparator) {
        return new Builder<>(comparator);
      }
    
      /**
       * Returns a builder that creates immutable sorted sets whose elements are ordered by the reverse
       * of their natural ordering.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top