Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for NullPointerException (0.2 sec)

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

       * safe to do so. The exact circumstances under which a copy will or will not be performed are
       * undocumented and subject to change.
       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableListMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        if (multimap.isEmpty()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Maps.java

       * NullPointerException}.
       */
      @CheckForNull
      static <V extends @Nullable Object> V safeGet(Map<?, V> map, @CheckForNull Object key) {
        checkNotNull(map);
        try {
          return map.get(key);
        } catch (ClassCastException | NullPointerException e) {
          return null;
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       *
       * @throws NullPointerException if any element is null
       */
      public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(
          E e1, E e2, E e3, E e4) {
        return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4));
      }
    
      /**
       * Returns an immutable sorted multiset containing the given elements sorted by their natural
       * ordering.
       *
       * @throws NullPointerException if any element is null
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        @Override
        public OutputStream openStream() {
          return ByteStreams.nullOutputStream();
        }
      }
    
      // Compare by toString() to satisfy 2 properties:
      // 1. compareTo(null) should throw NullPointerException
      // 2. the order is deterministic and easy to understand, for debugging purpose.
      @SuppressWarnings("ComparableType")
      private static final class ByToString implements Comparable<Object>, Serializable {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  5. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        @Override
        public OutputStream openStream() {
          return ByteStreams.nullOutputStream();
        }
      }
    
      // Compare by toString() to satisfy 2 properties:
      // 1. compareTo(null) should throw NullPointerException
      // 2. the order is deterministic and easy to understand, for debugging purpose.
      @SuppressWarnings("ComparableType")
      private static final class ByToString implements Comparable<Object>, Serializable {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multimaps.java

       * @return {@code ImmutableListMultimap} mapping the result of evaluating the function {@code
       *     keyFunction} on each value in the input collection to that value
       * @throws NullPointerException if any element of {@code values} is {@code null}, or if {@code
       *     keyFunction} produces {@code null} for any key
       */
      public static <K, V> ImmutableListMultimap<K, V> index(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Function.java

       *       Objects.equal}{@code (a, b)} implies that {@code Objects.equal(function.apply(a),
       *       function.apply(b))}.
       * </ul>
       *
       * @throws NullPointerException if {@code input} is null and this function does not accept null
       *     arguments
       */
      @ParametricNullness
      T apply(@ParametricNullness F input);
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/EnumMultiset.java

        }
        return false;
      }
    
      /**
       * Returns {@code element} cast to {@code E}, if it actually is a nonnull E. Otherwise, throws
       * either a NullPointerException or a ClassCastException as appropriate.
       */
      private void checkIsE(Object element) {
        checkNotNull(element);
        if (!isActuallyE(element)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterators.java

       * necessary.
       *
       * <p>The returned iterator supports {@code remove()} when the corresponding input iterator
       * supports it.
       *
       * @throws NullPointerException if any of the provided iterators is null
       */
      @SafeVarargs
      public static <T extends @Nullable Object> Iterator<T> concat(Iterator<? extends T>... inputs) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top