Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 105 for ClassCastException (0.29 sec)

  1. guava/src/com/google/common/base/Predicates.java

       *
       * <ul>
       *   <li>The {@link Predicate} returned by this method is {@link Serializable}.
       *   <li>The {@link Predicate} returned by this method catches {@link ClassCastException} and
       *       {@link NullPointerException}.
       *   <li>Code that chains multiple predicates together (especially negations) may be more readable
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * undocumented and subject to change.
       *
       * <p>This method is not type-safe, as it may be called on elements that are not mutually
       * comparable.
       *
       * @throws ClassCastException if the elements are not mutually comparable
       * @throws NullPointerException if any of {@code elements} is null
       */
      public static <E> ImmutableSortedSet<E> copyOf(Iterable<? extends E> elements) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Cut.java

          // 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;
          } catch (ClassCastException wastNotComparableToOurType) {
            return false;
          }
        }
        return false;
      }
    
      // Prevent "missing hashCode" warning by explicitly forcing subclasses implement it
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SIDTest.java

            SID sid = new SID(adminSidString);
            SID unwrapped = sid.unwrap(SID.class);
            assertNotNull(unwrapped);
            assertEquals(sid, unwrapped);
    
            assertThrows(ClassCastException.class, () -> sid.unwrap(String.class));
        }
    
        /**
         * Test the resolve method.
         *
         * @throws IOException if an I/O error occurs
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        } catch (UnsupportedOperationException e) {
          return;
        }
        assertFalse(map.containsKey(unmappedKey));
        try {
          assertFalse(map.containsKey(new IncompatibleKeyType()));
        } catch (ClassCastException tolerated) {
        }
        assertTrue(map.containsKey(map.keySet().iterator().next()));
        if (allowsNullKeys) {
          boolean unused = map.containsKey(null);
        } else {
          try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       * undocumented and subject to change.
       *
       * <p>This method is not type-safe, as it may be called on elements that are not mutually
       * comparable.
       *
       * @throws ClassCastException if the elements are not mutually comparable
       * @throws NullPointerException if any of {@code elements} is null
       */
      public static <E> ImmutableSortedMultiset<E> copyOf(Iterable<? extends E> elements) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeRangeMap.java

                    && candidate.getKey().intersection(subRange).equals(r)) {
                  return candidate.getValue();
                }
              }
            } catch (ClassCastException e) {
              return null;
            }
            return null;
          }
    
          @Override
          public @Nullable V remove(@Nullable Object key) {
            V value = get(key);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SID.java

        @SuppressWarnings("unchecked")
        @Override
        public <T> T unwrap(final Class<T> t) {
            if (t.isAssignableFrom(this.getClass())) {
                return (T) this;
            }
            throw new ClassCastException();
        }
    
        /**
         * Gets the byte array representation of this SID.
         *
         * @return encoded SID
         */
        public byte[] toByteArray() {
            return toByteArray(this);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

            Thread.currentThread().interrupt();
          }
        }
      }
    
      /**
       * Invokes {@code queue.}{@link BlockingQueue#put(Object) put(element)} uninterruptibly.
       *
       * @throws ClassCastException if the class of the specified element prevents it from being added
       *     to the given queue
       * @throws IllegalArgumentException if some property of the specified element prevents it from
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

                }
    
                @Override
                public <T extends SmbPipeHandle> T unwrap(Class<T> type) {
                    return null;
                }
            }
            assertThrows(ClassCastException.class, () -> {
                OtherPipeHandle result = handle.unwrap(OtherPipeHandle.class);
            });
        }
    
        @Test
        @DisplayName("getPipeType and getPipe delegate to SmbNamedPipe")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
Back to top