Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 113 for ClassCastException (0.19 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/ReflectionFreeAssertThrows.java

              .put(AssertionFailedError.class, e -> e instanceof AssertionFailedError)
              .put(CancellationException.class, e -> e instanceof CancellationException)
              .put(ClassCastException.class, e -> e instanceof ClassCastException)
              .put(
                  ConcurrentModificationException.class,
                  e -> e instanceof ConcurrentModificationException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/ReflectionFreeAssertThrows.java

              .put(AssertionFailedError.class, e -> e instanceof AssertionFailedError)
              .put(CancellationException.class, e -> e instanceof CancellationException)
              .put(ClassCastException.class, e -> e instanceof ClassCastException)
              .put(
                  ConcurrentModificationException.class,
                  e -> e instanceof ConcurrentModificationException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 22 13:49:09 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

            } else if (cmp > 0) {
              return false;
            }
          }
        } catch (NullPointerException | ClassCastException e) {
          return false;
        }
      }
    
      private int unsafeBinarySearch(Object key) throws ClassCastException {
        return Collections.binarySearch(elements, key, unsafeComparator());
      }
    
      @Override
      boolean isPartialView() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     * OutOfMemoryError}). This class does not permit {@code null} elements. A priority queue relying on
     * {@linkplain Comparable natural ordering} also does not permit insertion of non-comparable objects
     * (doing so results in {@code ClassCastException}).
     *
     * <p>This class and its iterator implement all of the optional methods of the {@link
     * Collection} and {@link Iterator} interfaces. The Iterator provided in method {@link #iterator()}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 07 21:36:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

            ImmutableMap.of(new Object(), new Object(), new Object(), new Object());
    
        assertThrows(ClassCastException.class, () -> ImmutableSortedMap.copyOf(original));
      }
    
      public void testImmutableSortedSetCopyOfIterable() {
        Set<Object> original = ImmutableSet.of(new Object(), new Object());
    
        assertThrows(ClassCastException.class, () -> ImmutableSortedSet.copyOf(original));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/FauxveridesTest.java

            ImmutableMap.of(new Object(), new Object(), new Object(), new Object());
    
        assertThrows(ClassCastException.class, () -> ImmutableSortedMap.copyOf(original));
      }
    
      public void testImmutableSortedSetCopyOfIterable() {
        Set<Object> original = ImmutableSet.of(new Object(), new Object());
    
        assertThrows(ClassCastException.class, () -> ImmutableSortedSet.copyOf(original));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testReplace_supportedPresent() {
        try {
          assertEquals(v0(), getMap().replace(k0(), v3()));
          expectReplacement(entry(k0(), v3()));
        } catch (ClassCastException tolerated) { // for ClassToInstanceMap
          expectUnchanged();
        }
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplace_supportedPresentNoChange() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        }
        return comparator;
      }
    
      @Override
      public boolean containsKey(Object key) {
        try {
          return delegate.containsKey(checkValid(key));
        } catch (NullPointerException | ClassCastException e) {
          return false;
        }
      }
    
      @Override
      public boolean containsValue(Object value) {
        return delegate.containsValue(value);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        }
        return comparator;
      }
    
      @Override
      public boolean containsKey(Object key) {
        try {
          return delegate.containsKey(checkValid(key));
        } catch (NullPointerException | ClassCastException e) {
          return false;
        }
      }
    
      @Override
      public boolean containsValue(Object value) {
        return delegate.containsValue(value);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Ordering.java

       * Object[])} comparator when comparing a value outside the set of values it can compare.
       * Extending {@link ClassCastException} may seem odd, but it is required.
       */
      static class IncomparableValueException extends ClassCastException {
        final Object value;
    
        IncomparableValueException(Object value) {
          super("Cannot compare value: " + value);
          this.value = value;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top