Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 180 for requireNonNull (0.07 sec)

  1. android/guava-testlib/src/com/google/common/testing/Platform.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 23 12:13:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

              submittingTaskQueue.nextTask = task;
              // requireNonNull(delegate) is safe for reasons similar to requireNonNull(sequencer).
              submittingTaskQueue.nextExecutor = requireNonNull(delegate);
              delegate = null;
            } else {
              // requireNonNull(delegate) is safe for reasons similar to requireNonNull(sequencer).
              Executor localDelegate = requireNonNull(delegate);
              delegate = null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/SparseImmutableTable.java

          C columnKey = cell.getColumnKey();
          V value = cell.getValue();
    
          /*
           * These requireNonNull calls are safe because we construct the maps to hold all the provided
           * cells.
           */
          cellRowIndices[i] = requireNonNull(rowIndex.get(rowKey));
          Map<C, V> thisRow = requireNonNull(rows.get(rowKey));
          cellColumnInRowIndices[i] = thisRow.size();
          V oldValue = thisRow.put(columnKey, value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/DefaultSettingsWriter.java

    public class DefaultSettingsWriter implements SettingsWriter {
    
        @Override
        public void write(File output, Map<String, Object> options, Settings settings) throws IOException {
            Objects.requireNonNull(output, "output cannot be null");
            Objects.requireNonNull(settings, "settings cannot be null");
    
            output.getParentFile().mkdirs();
    
            write(Files.newOutputStream(output.toPath()), options, settings);
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/DenseImmutableTable.java

        // requireNonNull is safe because we use indexes that were populated by the constructor.
        V value = requireNonNull(values[rowIndex][columnIndex]);
        return cellOf(rowKey, columnKey, value);
      }
    
      @Override
      V getValue(int index) {
        // requireNonNull is safe because we use indexes that were populated by the constructor.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. compat/maven-settings/src/main/java/org/apache/maven/settings/BaseObject.java

    import java.io.Serializable;
    
    import static java.util.Objects.requireNonNull;
    
    public abstract class BaseObject implements Serializable, Cloneable {
        protected transient ChildrenTracking childrenTracking;
    
        protected Object delegate;
    
        public BaseObject() {}
    
        public BaseObject(Object delegate, BaseObject parent) {
            this.delegate = requireNonNull(delegate, "delegate cannot be null");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. compat/maven-model/src/main/java/org/apache/maven/model/BaseObject.java

    import java.io.Serializable;
    
    import static java.util.Objects.requireNonNull;
    
    public abstract class BaseObject implements Serializable, Cloneable, InputLocationTracker {
        protected transient ChildrenTracking childrenTracking;
    
        protected Object delegate;
    
        public BaseObject() {}
    
        public BaseObject(Object delegate, BaseObject parent) {
            this.delegate = requireNonNull(delegate, "delegate cannot be null");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/aether/MavenDeployer.java

        @Inject
        MavenDeployer(DefaultDeployer deployer, ConsumerPomArtifactTransformer consumerPomArtifactTransformer) {
            this.deployer = requireNonNull(deployer);
            this.consumerPomArtifactTransformer = requireNonNull(consumerPomArtifactTransformer);
        }
    
        @Override
        public DeployResult deploy(RepositorySystemSession session, DeployRequest request) throws DeploymentException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

        return requireNonNull(outEdgeMap.get(edge));
      }
    
      @Override
      public N removeInEdge(E edge, boolean isSelfLoop) {
        if (isSelfLoop) {
          checkNonNegative(--selfLoopCount);
        }
        N previousNode = inEdgeMap.remove(edge);
        // We're relying on callers to call this method only with an edge that's in the graph.
        return requireNonNull(previousNode);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/LinkedListMultimap.java

          // requireNonNull is safe (under the conditions listed in the comment in the branch above).
          KeyList<K, V> keyList = requireNonNull(keyToKeyList.get(node.key));
          keyList.count--;
    
          if (node.previousSibling == null) {
            // requireNonNull is safe because we checked that not *both* siblings were null.
            keyList.head = requireNonNull(node.nextSibling);
          } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
Back to top