Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 265 for downTo (0.07 sec)

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

        // Add one-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (BoundType type : BoundType.values()) {
            builder.add(Range.upTo(i, type));
            builder.add(Range.downTo(i, type));
          }
        }
    
        // Add two-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (int j = i + 1; j <= MAX_BOUND; j++) {
            for (BoundType lowerType : BoundType.values()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

     */
    internal fun String.indexOfLastNonAsciiWhitespace(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
      for (i in endIndex - 1 downTo startIndex) {
        when (this[i]) {
          '\t', '\n', '\u000C', '\r', ' ' -> Unit
          else -> return i + 1
        }
      }
      return startIndex
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/GeneralRange.java

      }
    
      /**
       * Returns everything above the endpoint relative to the specified comparator, with the specified
       * endpoint behavior.
       */
      static <T extends @Nullable Object> GeneralRange<T> downTo(
          Comparator<? super T> comparator, @ParametricNullness T endpoint, BoundType boundType) {
        return new GeneralRange<>(comparator, true, endpoint, boundType, false, null, 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)
  4. guava/src/com/google/common/collect/ImmutableRangeSet.java

                  toElement, BoundType.forBoolean(toInclusive)));
        }
    
        @Override
        ImmutableSortedSet<C> tailSetImpl(C fromElement, boolean inclusive) {
          return subSet(Range.downTo(fromElement, BoundType.forBoolean(inclusive)));
        }
    
        @Override
        public boolean contains(@CheckForNull Object o) {
          if (o == null) {
            return false;
          }
          try {
    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-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        rangesBuilder.add(Range.<Integer>all());
        for (int i = -2; i <= 2; i++) {
          for (BoundType boundType : BoundType.values()) {
            rangesBuilder.add(Range.upTo(i, boundType));
            rangesBuilder.add(Range.downTo(i, boundType));
          }
          for (int j = i + 1; j <= 2; j++) {
            for (BoundType lbType : BoundType.values()) {
              for (BoundType ubType : BoundType.values()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (BoundType boundType : BoundType.values()) {
            queryBuilder.add(Range.upTo(i, boundType));
            queryBuilder.add(Range.downTo(i, boundType));
          }
          queryBuilder.add(Range.singleton(i));
          queryBuilder.add(Range.openClosed(i, i));
          queryBuilder.add(Range.closedOpen(i, i));
    
    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/Range.java

      /**
       * Returns a range from the given endpoint, which may be either inclusive (closed) or exclusive
       * (open), with no upper bound.
       *
       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> downTo(C endpoint, BoundType boundType) {
        switch (boundType) {
          case OPEN:
            return greaterThan(endpoint);
          case CLOSED:
            return atLeast(endpoint);
        }
        throw new AssertionError();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        // Add one-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (BoundType type : BoundType.values()) {
            builder.add(Range.upTo(i, type));
            builder.add(Range.downTo(i, type));
          }
        }
    
        // Add two-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (int j = i; j <= MAX_BOUND; j++) {
            for (BoundType lowerType : BoundType.values()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Range.java

      /**
       * Returns a range from the given endpoint, which may be either inclusive (closed) or exclusive
       * (open), with no upper bound.
       *
       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> downTo(C endpoint, BoundType boundType) {
        switch (boundType) {
          case OPEN:
            return greaterThan(endpoint);
          case CLOSED:
            return atLeast(endpoint);
        }
        throw new AssertionError();
    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/TreeMultiset.java

      }
    
      @Override
      public SortedMultiset<E> tailMultiset(@ParametricNullness E lowerBound, BoundType boundType) {
        return new TreeMultiset<>(
            rootReference,
            range.intersect(GeneralRange.downTo(comparator(), lowerBound, boundType)),
            header);
      }
    
      private static final class Reference<T> {
        @CheckForNull private T value;
    
        @CheckForNull
        public T get() {
          return value;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.1K bytes
    - Viewed (0)
Back to top