Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 180 for requireNonNull (0.1 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContext.java

        public static class Holder {
            private volatile boolean set;
            private volatile Model model;
    
            Holder() {}
    
            Holder(Model model) {
                this.model = Objects.requireNonNull(model);
                this.set = true;
            }
    
            public static Model deref(Holder holder) {
                return holder != null ? holder.get() : null;
            }
    
            public Model get() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

            } else {
                this.proxies = null;
            }
    
            return this;
        }
    
        @Override
        public MavenExecutionRequest addProxy(Proxy proxy) {
            Objects.requireNonNull(proxy, "proxy cannot be null");
    
            for (Proxy p : getProxies()) {
                if (p.getId() != null && p.getId().equals(proxy.getId())) {
                    return this;
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TreeRangeMap.java

          public V remove(@CheckForNull Object key) {
            V value = get(key);
            if (value != null) {
              // it's definitely in the map, so the cast and requireNonNull are safe
              @SuppressWarnings("unchecked")
              Range<K> range = (Range<K>) requireNonNull(key);
              TreeRangeMap.this.remove(range);
              return value;
            }
            return null;
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  4. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AbstractService.java

          checkState(
              state == FAILED,
              "failureCause() is only valid if the service has failed, service is %s",
              state);
          // requireNonNull is safe because the constructor requires a non-null cause with state=FAILED.
          return requireNonNull(failure);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multisets.java

          }
          laterCount--;
          canRemove = true;
          /*
           * requireNonNull is safe because laterCount starts at 0, forcing us to initialize
           * currentEntry above. After that, we never clear it.
           */
          return requireNonNull(currentEntry).getElement();
        }
    
        @Override
        public void remove() {
          checkRemove(canRemove);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Multisets.java

          }
          laterCount--;
          canRemove = true;
          /*
           * requireNonNull is safe because laterCount starts at 0, forcing us to initialize
           * currentEntry above. After that, we never clear it.
           */
          return requireNonNull(currentEntry).getElement();
        }
    
        @Override
        public void remove() {
          checkRemove(canRemove);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java

    import static java.util.Objects.requireNonNull;
    
    /**
     * A class building reverse tree using {@link CollectStepData} trace data provided in {@link RepositoryEvent}
     * events fired during collection.
     *
     * @since 3.9.0
     */
    class ReverseTreeRepositoryListener extends AbstractRepositoryListener {
        @Override
        public void artifactResolved(RepositoryEvent event) {
            requireNonNull(event, "event cannot be null");
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/HashBiMap.java

        }
    
        @Override
        public T next() {
          if (!hasNext()) {
            throw new NoSuchElementException();
          }
    
          // requireNonNull is safe because of the hasNext check.
          BiEntry<K, V> entry = requireNonNull(next);
          next = entry.nextInKeyInsertionOrder;
          toRemove = entry;
          remaining--;
          return output(entry);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  10. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top