Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for CCE (0.01 seconds)

  1. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        } else {
          return ~index;
        }
      }
    
      // Pretend the comparator can compare anything. If it turns out it can't
      // compare two elements, it'll throw a CCE. Only methods that are specified to
      // throw CCE should call this.
      @SuppressWarnings("unchecked")
      Comparator<Object> unsafeComparator() {
        return (Comparator<Object>) comparator;
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Cut.java

      }
    
      C endpoint() {
        return endpoint;
      }
    
      @SuppressWarnings("unchecked") // catching CCE
      @Override
      public boolean equals(@Nullable Object obj) {
        if (obj instanceof Cut) {
          // It might not really be a Cut<C>, but we'll catch a CCE if it's not
          Cut<C> that = (Cut<C>) obj;
          try {
            int compareResult = compareTo(that);
            return compareResult == 0;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/Cut.java

      }
    
      C endpoint() {
        return endpoint;
      }
    
      @SuppressWarnings("unchecked") // catching CCE
      @Override
      public boolean equals(@Nullable Object obj) {
        if (obj instanceof Cut) {
          // It might not really be a Cut<C>, but we'll catch a CCE if it's not
          Cut<C> that = (Cut<C>) obj;
          try {
            int compareResult = compareTo(that);
            return compareResult == 0;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/Range.java

       * range {@code [0..2)}, {@code contains(1)} returns {@code true}, while {@code contains(2)}
       * returns {@code false}.
       */
      public boolean contains(C value) {
        checkNotNull(value);
        // let this throw CCE if there is some trickery going on
        return lowerBound.isLessThan(value) && !upperBound.isLessThan(value);
      }
    
      /**
       * @deprecated Provided only to satisfy the {@link Predicate} interface; use {@link #contains}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 28K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/Multisets.java

            int entryCount = entry.getCount();
            if (entryCount != 0) {
              // Safe as long as we never add a new entry, which we won't.
              // (Presumably it can still throw CCE/NPE but only if the underlying Multiset does.)
              @SuppressWarnings({"unchecked", "nullness"})
              Multiset<@Nullable Object> multiset = (Multiset<@Nullable Object>) multiset();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.3K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/Multisets.java

            int entryCount = entry.getCount();
            if (entryCount != 0) {
              // Safe as long as we never add a new entry, which we won't.
              // (Presumably it can still throw CCE/NPE but only if the underlying Multiset does.)
              @SuppressWarnings({"unchecked", "nullness"})
              Multiset<@Nullable Object> multiset = (Multiset<@Nullable Object>) multiset();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.2K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals("Ordering.explicit([0])", c.toString());
      }
    
      public void testExplicitMax_b297601553() {
        Ordering<Integer> c = Ordering.explicit(1, 2, 3);
    
        // TODO(b/297601553): this should probably throw CCE since 0 isn't explicitly listed
        assertEquals(0, (int) c.max(asList(0)));
        IncomparableValueException expected =
            assertThrows(IncomparableValueException.class, () -> c.max(asList(0, 1)));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      public void testExplicitMax_b297601553() {
        Ordering<Integer> c = Ordering.explicit(1, 2, 3);
    
        // TODO(b/297601553): this should probably throw an CCE since 0 isn't explicitly listed
        assertEquals(0, (int) c.max(asList(0)));
        IncomparableValueException expected =
            assertThrows(IncomparableValueException.class, () -> c.max(asList(0, 1)));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
Back to Top