Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 456 for compareTo (0.06 sec)

  1. android/guava/src/com/google/common/primitives/Chars.java

      }
    
      /**
       * Compares the two specified {@code char} values. The sign of the value returned is the same as
       * that of {@code ((Character) a).compareTo(b)}.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use the
       * equivalent {@link Character#compare} method instead.
       *
       * @param a the first {@code char} to compare
       * @param b the second {@code char} to compare
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Shorts.java

      }
    
      /**
       * Compares the two specified {@code short} values. The sign of the value returned is the same as
       * that of {@code ((Short) a).compareTo(b)}.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use the
       * equivalent {@link Short#compare} method instead.
       *
       * @param a the first {@code short} to compare
       * @param b the second {@code short} to compare
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Shorts.java

      }
    
      /**
       * Compares the two specified {@code short} values. The sign of the value returned is the same as
       * that of {@code ((Short) a).compareTo(b)}.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use the
       * equivalent {@link Short#compare} method instead.
       *
       * @param a the first {@code short} to compare
       * @param b the second {@code short} to compare
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/MoreExecutors.java

          }
    
          @Override
          public long getDelay(TimeUnit unit) {
            return scheduledDelegate.getDelay(unit);
          }
    
          @Override
          public int compareTo(Delayed other) {
            return scheduledDelegate.compareTo(other);
          }
        }
    
        @J2ktIncompatible
        @GwtIncompatible // TODO
        private static final class NeverSuccessfulListenableFutureTask
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TreeMultiset.java

    /**
     * A multiset which maintains the ordering of its elements, according to either their natural order
     * or an explicit {@link Comparator}. In all cases, this implementation uses {@link
     * Comparable#compareTo} or {@link Comparator#compare} instead of {@link Object#equals} to determine
     * equivalence of instances.
     *
     * <p><b>Warning:</b> The comparison must be <i>consistent with equals</i> as explained by the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

        return new NullFriendlyComparator<>();
      }
    
      private static final class NullFriendlyComparator<T> implements Comparator<T>, Serializable {
        @Override
        public int compare(T left, T right) {
          return String.valueOf(left).compareTo(String.valueOf(right));
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        }
      }
    
      public void testCompare() {
        for (char x : VALUES) {
          for (char y : VALUES) {
            assertWithMessage(x + ", " + y)
                .that(Math.signum(Chars.compare(x, y)))
                .isEqualTo(Math.signum(Character.valueOf(x).compareTo(y)));
          }
        }
      }
    
      public void testContains() {
        assertThat(Chars.contains(EMPTY, (char) 1)).isFalse();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                    String lastUpdated = versioning.getLastUpdated();
                    String now = versioningRef.getLastUpdated();
                    if (lastUpdated != null && now != null && now.compareTo(lastUpdated) < 0) {
                        getLogger()
                                .warn("The last updated timestamp in " + metadataFile + " refers to the future (now = "
                                        + now
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      public void testExplicit_two() {
        Comparator<Integer> c = Ordering.explicit(42, 5);
        assertEquals(0, c.compare(5, 5));
        assertTrue(c.compare(5, 42) > 0);
        assertTrue(c.compare(42, 5) < 0);
        IncomparableValueException expected =
            assertThrows(IncomparableValueException.class, () -> c.compare(5, 666));
        assertEquals(666, expected.value);
        new EqualsTester()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      public void testExplicit_two() {
        Comparator<Integer> c = Ordering.explicit(42, 5);
        assertEquals(0, c.compare(5, 5));
        assertTrue(c.compare(5, 42) > 0);
        assertTrue(c.compare(42, 5) < 0);
        IncomparableValueException expected =
            assertThrows(IncomparableValueException.class, () -> c.compare(5, 666));
        assertEquals(666, expected.value);
        new EqualsTester()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top