Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for encloses (0.12 sec)

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

        assertTrue(range.encloses(Range.openClosed(2, 5)));
        assertTrue(range.encloses(Range.closedOpen(2, 5)));
        assertTrue(range.encloses(Range.closed(3, 5)));
        assertTrue(range.encloses(Range.closed(2, 4)));
    
        assertFalse(range.encloses(Range.open(1, 6)));
        assertFalse(range.encloses(Range.greaterThan(3)));
        assertFalse(range.encloses(Range.lessThan(3)));
        assertFalse(range.encloses(Range.atLeast(3)));
    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. guava/src/com/google/common/collect/Range.java

       * range. Examples:
       *
       * <ul>
       *   <li>{@code [3..6]} encloses {@code [4..5]}
       *   <li>{@code (3..6)} encloses {@code (3..6)}
       *   <li>{@code [3..6]} encloses {@code [4..4)} (even though the latter is empty)
       *   <li>{@code (3..6]} does not enclose {@code [3..6]}
       *   <li>{@code [4..5]} does not enclose {@code (3..6)} (even though it contains every value
       *       contained by the latter range)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Range.java

       * range. Examples:
       *
       * <ul>
       *   <li>{@code [3..6]} encloses {@code [4..5]}
       *   <li>{@code (3..6)} encloses {@code (3..6)}
       *   <li>{@code [3..6]} encloses {@code [4..4)} (even though the latter is empty)
       *   <li>{@code (3..6]} does not enclose {@code [3..6]}
       *   <li>{@code [4..5]} does not enclose {@code (3..6)} (even though it contains every value
       *       contained by the latter range)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableRangeSet.java

      }
    
      @Override
      public boolean encloses(Range<C> otherRange) {
        int index =
            SortedLists.binarySearch(
                ranges,
                Range::lowerBound,
                otherRange.lowerBound,
                Ordering.natural(),
                ANY_PRESENT,
                NEXT_LOWER);
        return index != -1 && ranges.get(index).encloses(otherRange);
      }
    
      @Override
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java

            if (edges.size() == 1) {
                MetadataGraphEdge e = edges.get(0);
                if (scope.encloses(e.getScope())) {
                    return e;
                }
    
                return null;
            }
    
            MetadataGraphEdge res = null;
    
            for (MetadataGraphEdge e : edges) {
                if (!scope.encloses(e.getScope())) {
                    continue;
                }
    
                if (res == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/TreeRangeMap.java

        public void put(Range<K> range, V value) {
          checkArgument(
              subRange.encloses(range), "Cannot put range %s into a subRangeMap(%s)", range, subRange);
          TreeRangeMap.this.put(range, value);
        }
    
        @Override
        public void putCoalescing(Range<K> range, V value) {
          if (entriesByLowerBound.isEmpty() || !subRange.encloses(range)) {
            put(range, value);
            return;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeRangeMap.java

        public void put(Range<K> range, V value) {
          checkArgument(
              subRange.encloses(range), "Cannot put range %s into a subRangeMap(%s)", range, subRange);
          TreeRangeMap.this.put(range, value);
        }
    
        @Override
        public void putCoalescing(Range<K> range, V value) {
          if (entriesByLowerBound.isEmpty() || !subRange.encloses(range)) {
            put(range, value);
            return;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactScopeEnum.java

         * scope relationship function. Used by the graph conflict resolution policies
         *
         * @param scope a scope
         * @return true is supplied scope is an inclusive sub-scope of current one.
         */
        public boolean encloses(ArtifactScopeEnum scope) {
            final ArtifactScopeEnum s = checkScope(scope);
    
            // system scope is historic only - and simple
            if (id == system.id) {
                return scope.id == system.id;
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

          for (Range<Integer> expectedRange : rangeSet.asRanges()) {
            if (expectedRange.encloses(query)) {
              expectEnclose = true;
              break;
            }
          }
    
          assertEquals(
              rangeSet + " was incorrect on encloses(" + query + ")",
              expectEnclose,
              rangeSet.encloses(query));
          assertEquals(
              rangeSet + " was incorrect on enclosesAll([" + query + "])",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

      }
    
      @Override
      public ImmutableRangeMap<K, V> subRangeMap(final Range<K> range) {
        if (checkNotNull(range).isEmpty()) {
          return ImmutableRangeMap.of();
        } else if (ranges.isEmpty() || range.encloses(span())) {
          return this;
        }
        int lowerIndex =
            SortedLists.binarySearch(
                ranges,
                Range::upperBound,
                range.lowerBound,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top