Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 139 for naturally (0.05 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

            builder.orderEntriesByValue(Ordering.natural()).buildOrThrow();
        assertMapEquals(keyOrdered, "four", 4, "one", 1);
        assertMapEquals(valueOrdered, "one", 1, "four", 4);
      }
    
      public void testBuilder_orderEntriesByValue_usedTwiceFails() {
        ImmutableMap.Builder<String, Integer> builder =
            new Builder<String, Integer>().orderEntriesByValue(Ordering.natural());
        assertThrows(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  2. api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java

         */
        private void updateFileIfChanged() throws IOException {
            String path = "META-INF/maven/org.apache.maven.api.di.Inject";
            Set<String> existingClasses = new TreeSet<>(); // Using TreeSet for natural ordering
            String existingContent = "";
    
            // Try to read existing content
            try {
                FileObject inputFile = processingEnv.getFiler().getResource(StandardLocation.CLASS_OUTPUT, "", path);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertThrows(IllegalArgumentException.class, () -> builder.expectedValuesPerKey(-1));
      }
    
      public void testBuilderWithExpectedValuesPerKeyZeroOrderValuesBy() {
        ImmutableSetMultimap.Builder<String, String> builder =
            ImmutableSetMultimap.<String, String>builder()
                .orderValuesBy(Ordering.natural())
                .expectedValuesPerKey(0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeMultiset.java

       *     indicates that the elements' <i>natural ordering</i> should be used.
       */
      @SuppressWarnings("unchecked")
      public static <E extends @Nullable Object> TreeMultiset<E> create(
          @Nullable Comparator<? super E> comparator) {
        return (comparator == null)
            ? new TreeMultiset<E>((Comparator) Ordering.natural())
            : new TreeMultiset<E>(comparator);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/UsingToStringOrdering.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    
    /** An ordering that uses the natural order of the string representation of the values. */
    @GwtCompatible
    final class UsingToStringOrdering extends Ordering<Object> implements Serializable {
      static final UsingToStringOrdering INSTANCE = new UsingToStringOrdering();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/TestEnumMultisetGenerator.java

      }
    
      protected abstract Multiset<AnEnum> create(AnEnum[] elements);
    
      @Override
      public AnEnum[] createArray(int length) {
        return new AnEnum[length];
      }
    
      /** Sorts the enums according to their natural ordering. */
      /*
       * While the current implementation returns `this`, that's not something we mean to guarantee.
       * Callers of TestContainerGenerator.order need to be prepared for implementations to return a new
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 11 19:03:19 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/TestEnumMapGenerator.java

        return new AnEnum[length];
      }
    
      @Override
      public final String[] createValueArray(int length) {
        return new String[length];
      }
    
      /** Returns the elements sorted in natural order. */
      @Override
      public Iterable<Entry<AnEnum, String>> order(List<Entry<AnEnum, String>> insertionOrder) {
        return orderEntriesByKey(insertionOrder);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/RegularContiguousSet.java

        checkNotNull(other);
        checkArgument(this.domain.equals(other.domain));
        if (other.isEmpty()) {
          return other;
        } else {
          C lowerEndpoint = Ordering.<C>natural().max(this.first(), other.first());
          C upperEndpoint = Ordering.<C>natural().min(this.last(), other.last());
          return (lowerEndpoint.compareTo(upperEndpoint) <= 0)
              ? ContiguousSet.create(Range.closed(lowerEndpoint, upperEndpoint), domain)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

      private static final Ordering<List<Class<?>>> ORDERING_BY_CONSTRUCTOR_PARAMETER_LIST =
          Ordering.natural()
              .onResultOf((List<Class<?>> params) -> params.contains(String.class))
              .compound(
                  Ordering.natural()
                      .onResultOf((List<Class<?>> params) -> params.contains(Throwable.class)))
              .reverse();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

      public boolean intersects(Range<C> otherRange) {
        int ceilingIndex =
            SortedLists.binarySearch(
                ranges,
                Range::lowerBound,
                otherRange.lowerBound,
                Ordering.natural(),
                ANY_PRESENT,
                NEXT_HIGHER);
        if (ceilingIndex < ranges.size()
            && ranges.get(ceilingIndex).isConnected(otherRange)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27.4K bytes
    - Viewed (0)
Back to top