Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 211 for compareTo (0.17 sec)

  1. guava/src/com/google/common/collect/Range.java

         * inclusive ranges" and "Cuts."
         */
        if (lowerBound.compareTo(otherRange.upperBound) < 0
            && otherRange.lowerBound.compareTo(upperBound) < 0) {
          throw new IllegalArgumentException(
              "Ranges have a nonempty intersection: " + this + ", " + otherRange);
        }
    
        boolean isThisFirst = this.lowerBound.compareTo(otherRange.lowerBound) < 0;
        Range<C> firstRange = isThisFirst ? this : otherRange;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            assertTrue(lesser + ".compareTo(" + t + ')', lesser.compareTo(t) < 0);
            assertFalse(lesser.equals(t));
          }
    
          assertEquals(t + ".compareTo(" + t + ')', 0, t.compareTo(t));
          assertTrue(t.equals(t));
    
          for (int j = i + 1; j < valuesInExpectedOrder.size(); j++) {
            T greater = valuesInExpectedOrder.get(j);
            assertTrue(greater + ".compareTo(" + t + ')', greater.compareTo(t) > 0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

            for (String version : args) {
                ComparableVersion c = new ComparableVersion(version);
    
                if (prev != null) {
                    int compare = prev.compareTo(c);
                    System.out.println("   " + prev.toString() + ' ' + ((compare == 0) ? "==" : ((compare < 0) ? "<" : ">"))
                            + ' ' + version);
                }
    
                System.out.println(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 26K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

                    assertTrue(low.compareTo(high) < 0, "expected " + low + " < " + high);
                    assertTrue(high.compareTo(low) > 0, "expected " + high + " > " + low);
                }
            }
        }
    
        private void checkVersionsEqual(String v1, String v2) {
            Comparable c1 = newComparable(v1);
            Comparable c2 = newComparable(v2);
            assertEquals(0, c1.compareTo(c2), "expected " + v1 + " == " + v2);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/Helpers.java

            assertTrue(lesser + ".compareTo(" + t + ')', lesser.compareTo(t) < 0);
            assertFalse(lesser.equals(t));
          }
    
          assertEquals(t + ".compareTo(" + t + ')', 0, t.compareTo(t));
          assertTrue(t.equals(t));
    
          for (int j = i + 1; j < valuesInExpectedOrder.size(); j++) {
            T greater = valuesInExpectedOrder.get(j);
            assertTrue(greater + ".compareTo(" + t + ')', greater.compareTo(t) > 0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        private static final ByToString INSTANCE = new ByToString();
    
        @Override
        public int compareTo(Object o) {
          return toString().compareTo(o.toString());
        }
    
        @Override
        public String toString() {
          return "BY_TO_STRING";
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        BigInteger maxDoubleValue = BigDecimal.valueOf(Double.MAX_VALUE).toBigInteger();
        assertTrue(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL).compareTo(maxDoubleValue) <= 0);
        assertTrue(
            BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL + 1).compareTo(maxDoubleValue) > 0);
      }
    
      public void testConstantsEverySixteenthFactorial() {
        for (int i = 0, n = 0; n <= DoubleMath.MAX_FACTORIAL; i++, n += 16) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Range.java

         * inclusive ranges" and "Cuts."
         */
        if (lowerBound.compareTo(otherRange.upperBound) < 0
            && otherRange.lowerBound.compareTo(upperBound) < 0) {
          throw new IllegalArgumentException(
              "Ranges have a nonempty intersection: " + this + ", " + otherRange);
        }
    
        boolean isThisFirst = this.lowerBound.compareTo(otherRange.lowerBound) < 0;
        Range<C> firstRange = isThisFirst ? this : otherRange;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TreeRangeMap.java

          // we know ( [
          RangeMapEntry<K, V> rangeMapEntry = mapEntryBelowToTruncate.getValue();
          if (rangeMapEntry.getUpperBound().compareTo(rangeToRemove.lowerBound) > 0) {
            // we know ( [ )
            if (rangeMapEntry.getUpperBound().compareTo(rangeToRemove.upperBound) > 0) {
              // we know ( [ ] ), so insert the range ] ) back into the map --
              // it's being split apart
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  10. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

        }
    
        @Override
        public int compareTo(Artifact a) {
            int result = groupId.compareTo(a.getGroupId());
            if (result == 0) {
                result = artifactId.compareTo(a.getArtifactId());
                if (result == 0) {
                    result = type.compareTo(a.getType());
                    if (result == 0) {
                        if (classifier == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top