Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for compareOrThrow (0.23 sec)

  1. android/guava/src/com/google/common/collect/Cut.java

      @Override
      public int compareTo(Cut<C> that) {
        if (that == belowAll()) {
          return 1;
        }
        if (that == aboveAll()) {
          return -1;
        }
        int result = Range.compareOrThrow(endpoint, that.endpoint);
        if (result != 0) {
          return result;
        }
        // same value. below comes before above
        return Booleans.compare(this instanceof AboveValue, that instanceof AboveValue);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Cut.java

      @Override
      public int compareTo(Cut<C> that) {
        if (that == belowAll()) {
          return 1;
        }
        if (that == aboveAll()) {
          return -1;
        }
        int result = Range.compareOrThrow(endpoint, that.endpoint);
        if (result != 0) {
          return result;
        }
        // same value. below comes before above
        return Booleans.compare(this instanceof AboveValue, that instanceof AboveValue);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularContiguousSet.java

          }
        };
      }
    
      private static boolean equalsOrThrow(Comparable<?> left, @CheckForNull Comparable<?> right) {
        return right != null && Range.compareOrThrow(left, right) == 0;
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    
      @Override
      public C first() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ContiguousSet.java

          C beforeUpper = requireNonNull(range.upperBound.greatestValueBelow(domain));
          // Per class spec, we are allowed to throw CCE if necessary
          empty = Range.compareOrThrow(afterLower, beforeUpper) > 0;
        }
    
        return empty
            ? new EmptyContiguousSet<C>(domain)
            : new RegularContiguousSet<C>(effectiveRange, domain);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ContiguousSet.java

          C beforeUpper = requireNonNull(range.upperBound.greatestValueBelow(domain));
          // Per class spec, we are allowed to throw CCE if necessary
          empty = Range.compareOrThrow(afterLower, beforeUpper) > 0;
        }
    
        return empty
            ? new EmptyContiguousSet<C>(domain)
            : new RegularContiguousSet<C>(effectiveRange, domain);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Range.java

      Object readResolve() {
        if (this.equals(ALL)) {
          return all();
        } else {
          return this;
        }
      }
    
      @SuppressWarnings("unchecked") // this method may throw CCE
      static int compareOrThrow(Comparable left, Comparable right) {
        return left.compareTo(right);
      }
    
      /** Needed to serialize sorted collections of Ranges. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableRangeSet.java

        }
    
        @Override
        ImmutableSortedSet<C> subSetImpl(
            C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) {
          if (!fromInclusive && !toInclusive && Range.compareOrThrow(fromElement, toElement) == 0) {
            return ImmutableSortedSet.of();
          }
          return subSet(
              Range.range(
                  fromElement, BoundType.forBoolean(fromInclusive),
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

        }
    
        @Override
        ImmutableSortedSet<C> subSetImpl(
            C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) {
          if (!fromInclusive && !toInclusive && Range.compareOrThrow(fromElement, toElement) == 0) {
            return ImmutableSortedSet.of();
          }
          return subSet(
              Range.range(
                  fromElement, BoundType.forBoolean(fromInclusive),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 27.1K bytes
    - Viewed (0)
Back to top