Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for hasLowerBound (0.07 sec)

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

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    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());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TreeMultiset.java

      private AvlNode<E> firstNode() {
        AvlNode<E> root = rootReference.get();
        if (root == null) {
          return null;
        }
        AvlNode<E> node;
        if (range.hasLowerBound()) {
          // The cast is safe because of the hasLowerBound check.
          E endpoint = uncheckedCastNullableTToT(range.getLowerEndpoint());
          node = root.ceiling(comparator(), endpoint);
          if (node == null) {
            return null;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/TreeMultiset.java

      private AvlNode<E> firstNode() {
        AvlNode<E> root = rootReference.get();
        if (root == null) {
          return null;
        }
        AvlNode<E> node;
        if (range.hasLowerBound()) {
          // The cast is safe because of the hasLowerBound check.
          E endpoint = uncheckedCastNullableTToT(range.getLowerEndpoint());
          node = root.ceiling(comparator(), endpoint);
          if (node == null) {
            return null;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableRangeSet.java

        private final boolean positiveBoundedAbove;
    
        private final int size;
    
        ComplementRanges() {
          this.positiveBoundedBelow = ranges.get(0).hasLowerBound();
          this.positiveBoundedAbove = Iterables.getLast(ranges).hasUpperBound();
    
          int size = ranges.size() - 1;
          if (positiveBoundedBelow) {
            size++;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Range.java

        }
      }
    
      /** Returns {@code true} if this range has a lower endpoint. */
      public boolean hasLowerBound() {
        return lowerBound != Cut.belowAll();
      }
    
      /**
       * 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();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Range.java

        }
      }
    
      /** Returns {@code true} if this range has a lower endpoint. */
      public boolean hasLowerBound() {
        return lowerBound != Cut.belowAll();
      }
    
      /**
       * 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();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

            && set.comparator() != Ordering.natural()
            && range.hasLowerBound()
            && range.hasUpperBound()) {
          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(
    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/Maps.java

            && map.comparator() != Ordering.natural()
            && range.hasLowerBound()
            && range.hasUpperBound()) {
          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(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Maps.java

            && map.comparator() != Ordering.natural()
            && range.hasLowerBound()
            && range.hasUpperBound()) {
          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(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
Back to top