Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 331 for neutral (0.22 sec)

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

          return string.length();
        }
      }
    
      private static final Ordering<Integer> DECREASING_INTEGER = Ordering.<Integer>natural().reverse();
    
      public void testOnResultOf_natural() {
        Comparator<String> comparator =
            Ordering.<Integer>natural().onResultOf(StringLengthFunction.StringLength);
        assertTrue(comparator.compare("to", "be") == 0);
        assertTrue(comparator.compare("or", "not") < 0);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSettingsBuilder.java

            // so add central to the computed settings for backward compatibility.
            if (effective.getRepositories().isEmpty()
                    && effective.getPluginRepositories().isEmpty()) {
                Repository central = Repository.newBuilder()
                        .id("central")
                        .name("Central Repository")
                        .url("https://repo.maven.apache.org/maven2")
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

                .allowsSelfLoops(true)
                .nodeOrder(ElementOrder.<String>natural())
                .immutable()
                .build();
    
        assertThat(emptyGraph.isDirected()).isTrue();
        assertThat(emptyGraph.allowsSelfLoops()).isTrue();
        assertThat(emptyGraph.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 4.5K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          Integer[] copy = inputArrays[i & 0xFF].clone();
          Arrays.sort(copy, Ordering.natural());
          tmp += copy[0];
        }
        return tmp;
      }
    
      private static final Comparator<Integer> NATURAL_INTEGER =
          new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
              return o1.compareTo(o2);
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

        throw new UnsupportedOperationException();
      }
    
      private static final Comparator<?> NATURAL_ORDER = Ordering.natural();
    
      @SuppressWarnings("unchecked")
      private static final ImmutableSortedSet<Object> NATURAL_EMPTY_SET =
          new RegularImmutableSortedSet<Object>(
              new TreeSet<Object>((Comparator<Object>) NATURAL_ORDER), false);
    
      static <E> ImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSortedSet.java

      }
    
      static <E> RegularImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) {
        if (Ordering.natural().equals(comparator)) {
          @SuppressWarnings("unchecked") // The natural-ordered empty set supports all types.
          RegularImmutableSortedSet<E> result =
              (RegularImmutableSortedSet<E>) RegularImmutableSortedSet.NATURAL_EMPTY_SET;
          return result;
        } else {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  7. maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-a-1.0.pom

      <groupId>maven-test</groupId>
      <artifactId>maven-test-a</artifactId>
      <packaging>jar</packaging>
      <version>1.0</version>
      <repositories>
        <repository>
          <id>central</id>
          <name>Fake Maven Central Repository</name>
          <url>file://dummy</url>
        </repository>
      </repositories>
    Plain Text
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Wed Apr 29 05:20:38 GMT 2009
    - 355 bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/GeneralRangeTest.java

      }
    
      public void testFromRangeAll() {
        assertEquals(GeneralRange.all(Ordering.natural()), GeneralRange.from(Range.all()));
      }
    
      public void testFromRangeOneEnd() {
        for (BoundType endpointType : BoundType.values()) {
          assertEquals(
              GeneralRange.upTo(Ordering.natural(), 3, endpointType),
              GeneralRange.from(Range.upTo(3, endpointType)));
    
          assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SortedIterablesTest.java

        // Before JDK6 (including under GWT), the TreeMap keySet is a plain Set.
        if (Maps.newTreeMap().keySet() instanceof SortedSet) {
          assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet()));
        }
        assertTrue(
            SortedIterables.hasSameComparator(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       */
      private static final Comparator<?> NATURAL_ORDER = Ordering.natural();
    
      private static final ImmutableSortedMap<Comparable<?>, Object> NATURAL_EMPTY_MAP =
          new ImmutableSortedMap<>(
              ImmutableSortedSet.emptySet(Ordering.natural()), ImmutableList.<Object>of());
    
      static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) {
        if (Ordering.natural().equals(comparator)) {
          return of();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top