Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 240 of 312 for NullPointerException (0.15 seconds)

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

       * Objects.equals(o, element)} would return {@code true}. Otherwise returns {@code false}, even in
       * cases where {@link Collection#contains} might throw {@link NullPointerException} or {@link
       * ClassCastException}.
       */
      public static boolean contains(Iterable<?> iterable, @Nullable Object element) {
        if (iterable instanceof Collection) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 16 18:35:28 GMT 2025
    - 43.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Ordering.java

      // Natural order
    
      /**
       * Returns a serializable ordering that uses the natural order of the values. The ordering throws
       * a {@link NullPointerException} when passed a null parameter.
       *
       * <p>The type specification is {@code <C extends Comparable>}, instead of the technically correct
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 39.5K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/RangeTest.java

      public void testEncloseAll_nullValue() {
        List<@Nullable Integer> nullFirst = Lists.newArrayList(null, 0);
        assertThrows(NullPointerException.class, () -> Range.encloseAll((List<Integer>) nullFirst));
        List<@Nullable Integer> nullNotFirst = Lists.newArrayList(0, null);
        assertThrows(NullPointerException.class, () -> Range.encloseAll((List<Integer>) nullNotFirst));
      }
    
      public void testEquivalentFactories() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        testComparator(comparator, Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE);
        assertThrows(NullPointerException.class, () -> comparator.compare(1, null));
        assertThrows(NullPointerException.class, () -> comparator.compare(null, 2));
        assertThrows(NullPointerException.class, () -> comparator.compare(null, null));
        assertSame(comparator, reserialize(comparator));
    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)
  5. guava-tests/test/com/google/common/collect/OrderingTest.java

        testComparator(comparator, Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE);
        assertThrows(NullPointerException.class, () -> comparator.compare(1, null));
        assertThrows(NullPointerException.class, () -> comparator.compare(null, 2));
        assertThrows(NullPointerException.class, () -> comparator.compare(null, null));
        assertSame(comparator, reserialize(comparator));
    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)
  6. android/guava/src/com/google/common/collect/Maps.java

       * Delegates to {@link Map#get}. Returns {@code null} on {@code ClassCastException} and {@code
       * NullPointerException}.
       */
      static <V extends @Nullable Object> @Nullable V safeGet(Map<?, V> map, @Nullable Object key) {
        checkNotNull(map);
        try {
          return map.get(key);
        } catch (ClassCastException | NullPointerException e) {
          return null;
        }
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 157.6K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/Maps.java

       * Delegates to {@link Map#get}. Returns {@code null} on {@code ClassCastException} and {@code
       * NullPointerException}.
       */
      static <V extends @Nullable Object> @Nullable V safeGet(Map<?, V> map, @Nullable Object key) {
        checkNotNull(map);
        try {
          return map.get(key);
        } catch (ClassCastException | NullPointerException e) {
          return null;
        }
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 163.5K bytes
    - Click Count (0)
  8. guava/src/com/google/common/primitives/Floats.java

       *
       * @param collection a collection of {@code Number} instances
       * @return an array containing the same values as {@code collection}, in the same order, converted
       *     to primitives
       * @throws NullPointerException if {@code collection} or any of its elements is null
       * @since 1.0 (parameter was {@code Collection<Float>} before 12.0)
       */
      public static float[] toArray(Collection<? extends Number> collection) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/testing/EqualsTester.java

        List<Object> list = new ArrayList<>(equalityGroup.length);
        for (int i = 0; i < equalityGroup.length; i++) {
          Object element = equalityGroup[i];
          if (element == null) {
            throw new NullPointerException("at index " + i);
          }
          list.add(element);
        }
        equalityGroups.add(list);
        return this;
      }
    
      /** Run tests on equals method, throwing a failure on an invalid test */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/Interpolator.java

         * @return A function that applies each function in the collection in order until a non-null result is found.
         *         If all functions return null, the composite function returns null.
         *
         * @throws NullPointerException if the input collection is null or contains null elements.
         */
        static UnaryOperator<String> chain(Collection<? extends UnaryOperator<String>> functions) {
            return s -> {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Jan 13 16:14:35 GMT 2025
    - 6.9K bytes
    - Click Count (0)
Back to Top