Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 180 for requireNonNull (0.16 sec)

  1. guava/src/com/google/common/util/concurrent/MoreExecutors.java

    import static com.google.common.base.Throwables.throwIfUnchecked;
    import static com.google.common.util.concurrent.Internal.toNanosSaturated;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

             *
             * @param moduleName name of the module for which a path is specified
             */
            private Modular(@Nonnull String moduleName) {
                this.moduleName = Objects.requireNonNull(moduleName);
            }
    
            /**
             * Returns the type of path without indication about the target module.
             * This is usually {@link #PATCH_MODULE}.
             *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Throwables.throwIfUnchecked;
    import static java.nio.charset.StandardCharsets.UTF_8;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.CharMatcher;
    import com.google.common.base.Equivalence;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/InetAddresses.java

        checkNotNull(ip);
        if (ip instanceof Inet4Address) {
          // For IPv4, Java's formatting is good enough.
          // requireNonNull accommodates Android's @RecentlyNullable annotation on getHostAddress
          return requireNonNull(ip.getHostAddress());
        }
        byte[] bytes = ip.getAddress();
        int[] hextets = new int[IPV6_PART_COUNT];
        for (int i = 0; i < hextets.length; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterators.java

            if (!hasNext()) {
              throw new NoSuchElementException();
            }
            /*
             * requireNonNull is safe because our callers always pass non-null arguments. Each element
             * of the array becomes null only when we iterate past it and then clear it.
             */
            I result = requireNonNull(elements[index]);
            elements[index] = null;
            index++;
            return result;
          }
        };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Verify.java

     *       recommend using our {@link VerifyException} exception type. Throwing a plain {@link
     *       RuntimeException} is frowned upon.
     *   <li>Use of {@link java.util.Objects#requireNonNull(Object)} is generally discouraged, since
     *       {@link #verifyNotNull(Object)} and {@link Preconditions#checkNotNull(Object)} perform the
     *       same function with more clarity.
     * </ul>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 17 14:07:47 UTC 2021
    - 18.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Verify.java

     *       recommend using our {@link VerifyException} exception type. Throwing a plain {@link
     *       RuntimeException} is frowned upon.
     *   <li>Use of {@link java.util.Objects#requireNonNull(Object)} is generally discouraged, since
     *       {@link #verifyNotNull(Object)} and {@link Preconditions#checkNotNull(Object)} perform the
     *       same function with more clarity.
     * </ul>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 17 14:07:47 UTC 2021
    - 18.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

           * https://github.com/typetools/checker-framework/issues/3030
           *
           * https://github.com/typetools/checker-framework/issues/3236
           */
          String key = (String) requireNonNull(e.nextElement());
          /*
           * requireNonNull is safe because the key came from propertyNames...
           *
           * ...except that it's possible for users to insert a string key with a non-string value, and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Maps.java

           * https://github.com/typetools/checker-framework/issues/3030
           *
           * https://github.com/typetools/checker-framework/issues/3236
           */
          String key = (String) requireNonNull(e.nextElement());
          /*
           * requireNonNull is safe because the key came from propertyNames...
           *
           * ...except that it's possible for users to insert a string key with a non-string value, and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            String artifactId = parent.getArtifactId();
            String version = parent.getVersion();
    
            ModelResolver modelResolver = request.getModelResolver();
            Objects.requireNonNull(
                    modelResolver,
                    String.format(
                            "request.modelResolver cannot be null (parent POM %s and POM %s)",
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
Back to top