Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for encloses (0.2 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/guava/src/com/google/common/collect/Streams.java

                      return true;
                    }
                    return false;
                  }
                },
                isParallel)
            .onClose(streamA::close)
            .onClose(streamB::close);
      }
    
      /**
       * Invokes {@code consumer} once for each pair of <i>corresponding</i> elements in {@code streamA}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/CharSource.java

    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class CharSource {
    
      /** Constructor for use by subclasses. */
      protected CharSource() {}
    
      /**
       * Returns a {@link ByteSource} view of this char source that encodes chars read from this source
       * as bytes using the given {@link Charset}.
       *
       * <p>If {@link ByteSource#asCharSource} is called on the returned source with the same charset,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. LICENSES/third_party/forked/cgroups/LICENSE

          To apply the Apache License to your work, attach the following
          boilerplate notice, with the fields enclosed by brackets "[]"
          replaced with your own identifying information. (Don't include
          the brackets!)  The text should be enclosed in the appropriate
          comment syntax for the file format. We also recommend that a
          file or class name and description of purpose be included on the
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Thu Oct 31 17:42:39 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top