Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for lowerEndpoint (0.24 sec)

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

        if (hasLowerBound && hasUpperBound) {
          int cmp =
              comparator.compare(
                  uncheckedCastNullableTToT(lowerEndpoint), uncheckedCastNullableTToT(upperEndpoint));
          // be consistent with Range
          checkArgument(
              cmp <= 0, "lowerEndpoint (%s) > upperEndpoint (%s)", lowerEndpoint, upperEndpoint);
          if (cmp == 0) {
            checkArgument(lowerBoundType != OPEN || upperBoundType != OPEN);
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/GeneralRange.java

        if (hasLowerBound && hasUpperBound) {
          int cmp =
              comparator.compare(
                  uncheckedCastNullableTToT(lowerEndpoint), uncheckedCastNullableTToT(upperEndpoint));
          // be consistent with Range
          checkArgument(
              cmp <= 0, "lowerEndpoint (%s) > upperEndpoint (%s)", lowerEndpoint, upperEndpoint);
          if (cmp == 0) {
            checkArgument(lowerBoundType != OPEN || upperBoundType != OPEN);
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/RangeTest.java

    public class RangeTest extends TestCase {
      public void testOpen() {
        Range<Integer> range = Range.open(4, 8);
        checkContains(range);
        assertTrue(range.hasLowerBound());
        assertEquals(4, (int) range.lowerEndpoint());
        assertEquals(OPEN, range.lowerBoundType());
        assertTrue(range.hasUpperBound());
        assertEquals(8, (int) range.upperEndpoint());
        assertEquals(OPEN, range.upperBoundType());
        assertFalse(range.isEmpty());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularContiguousSet.java

        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)
              : new EmptyContiguousSet<C>(domain);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

        CollectorTester.of(
                ImmutableRangeMap.<Range<Integer>, Integer, Integer>toImmutableRangeMap(
                    k -> k, k -> k.lowerEndpoint()))
            .expectCollects(rangeMap, rangeOne, rangeTwo);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        } else if (b.isEmpty()) {
          assertThat(rangeSet.asRanges()).contains(a);
        } else if (a.isConnected(b)) {
          assertThat(rangeSet.asRanges()).containsExactly(a.span(b));
        } else {
          if (a.lowerEndpoint() < b.lowerEndpoint()) {
            assertThat(rangeSet.asRanges()).containsExactly(a, b).inOrder();
          } else {
            assertThat(rangeSet.asRanges()).containsExactly(b, a).inOrder();
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

          checkArgument(
              set.comparator().compare(range.lowerEndpoint(), range.upperEndpoint()) <= 0,
              "set is using a custom comparator which is inconsistent with the natural ordering.");
        }
        if (range.hasLowerBound() && range.hasUpperBound()) {
          return set.subSet(
              range.lowerEndpoint(),
              range.lowerBoundType() == BoundType.CLOSED,
              range.upperEndpoint(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Range.java

      /**
       * Returns the lower endpoint of this range.
       *
       * @throws IllegalStateException if this range is unbounded below (that is, {@link
       *     #hasLowerBound()} returns {@code false})
       */
      public C lowerEndpoint() {
        return lowerBound.endpoint();
      }
    
      /**
       * Returns the type of this range's lower bound: {@link BoundType#CLOSED} if the range includes
       * its lower endpoint, {@link BoundType#OPEN} if it does not.
    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. guava/src/com/google/common/collect/Range.java

      /**
       * Returns the lower endpoint of this range.
       *
       * @throws IllegalStateException if this range is unbounded below (that is, {@link
       *     #hasLowerBound()} returns {@code false})
       */
      public C lowerEndpoint() {
        return lowerBound.endpoint();
      }
    
      /**
       * Returns the type of this range's lower bound: {@link BoundType#CLOSED} if the range includes
       * its lower endpoint, {@link BoundType#OPEN} if it does not.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Maps.java

          checkArgument(
              map.comparator().compare(range.lowerEndpoint(), range.upperEndpoint()) <= 0,
              "map is using a custom comparator which is inconsistent with the natural ordering.");
        }
        if (range.hasLowerBound() && range.hasUpperBound()) {
          return map.subMap(
              range.lowerEndpoint(),
              range.lowerBoundType() == BoundType.CLOSED,
              range.upperEndpoint(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
Back to top