Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 218 for requireNonNull (2.02 sec)

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

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/Types.java

          class LocalClass<T> {}
          Class<?> subclass = new LocalClass<String>() {}.getClass();
          // requireNonNull is safe because we're examining a type that's known to have a superclass.
          ParameterizedType parameterizedType =
              requireNonNull((ParameterizedType) subclass.getGenericSuperclass());
          for (ClassOwnership behavior : ClassOwnership.values()) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 31 19:34:24 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashSet.java

       * CompactHashMap.
       */
    
      private Object requireTable() {
        return requireNonNull(table);
      }
    
      private int[] requireEntries() {
        return requireNonNull(entries);
      }
    
      private @Nullable Object[] requireElements() {
        return requireNonNull(elements);
      }
    
      @SuppressWarnings("unchecked")
      private E element(int i) {
        return (E) requireElements()[i];
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/builtin/BuiltinShellCommandRegistryFactory.java

    import org.jline.reader.Completer;
    import org.jline.reader.impl.completer.ArgumentCompleter;
    import org.jline.reader.impl.completer.StringsCompleter;
    
    import static java.util.Objects.requireNonNull;
    
    @Named("builtin")
    @Singleton
    public class BuiltinShellCommandRegistryFactory implements ShellCommandRegistryFactory {
        @Override
        public CommandRegistry createShellCommandRegistry(LookupContext context) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java

            return cache.get(key);
        }
    
        @Override
        public CacheRecord put(
                Key key, ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor, List<Artifact> artifacts) {
            Objects.requireNonNull(extensionRealm, "extensionRealm cannot be null");
    
            if (cache.containsKey(key)) {
                throw new IllegalStateException("Duplicate extension realm for extension " + key);
            }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactLinkedHashMap.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        }
    
        @Override
        public void remove() {
          valueIterator.remove();
          /*
           * requireNonNull is safe because we've already initialized `collection`. If we hadn't, then
           * valueIterator.remove() would have failed.
           */
          if (requireNonNull(collection).isEmpty()) {
            keyIterator.remove();
          }
          totalSize--;
        }
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

       * objects come from factory methods that are themselves {@code @Nullable}. In reality neither the
       * array nor its contents can be null, but it is not useful to force the use of {@code
       * requireNonNull} or the like just to assert that.
       *
       * <p>{@code EqualsTester} will always check that every object it is given returns false from
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

    import org.apache.maven.cling.utils.CLIReportingUtils;
    import org.apache.maven.properties.internal.EnvironmentUtils;
    import org.apache.maven.properties.internal.SystemProperties;
    
    import static java.util.Objects.requireNonNull;
    import static org.apache.maven.cling.invoker.CliUtils.createInterpolator;
    import static org.apache.maven.cling.invoker.CliUtils.getCanonicalPath;
    import static org.apache.maven.cling.invoker.CliUtils.or;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 10 07:39:11 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

          stream.defaultReadObject();
          factory = (Supplier<? extends Collection<V>>) requireNonNull(stream.readObject());
          Map<K, Collection<V>> map = (Map<K, Collection<V>>) requireNonNull(stream.readObject());
          setMap(map);
        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 86.5K bytes
    - Viewed (0)
Back to top