Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 300 for isEmpty (0.29 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java

            }
    
            private void markUnknown(String methodName) {
                if (unknown.isEmpty()) {
                    unknown = new HashSet<String>();
                }
                unknown.add(methodName);
            }
    
            private void cachePropertyValue(String methodName, Object value) {
                if (properties.isEmpty()) {
                    properties = new HashMap<String, Object>();
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 04:42:54 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

          stackWithLastReturnedElementAtTop = null;
        }
    
        @Override
        public boolean hasNext() {
          return !nextElements.isEmpty();
        }
    
        @Override
        public boolean hasPrevious() {
          return !previousElements.isEmpty();
        }
    
        @Override
        public E next() {
          return transferElement(nextElements, previousElements);
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  3. maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                    }
    
                    Set<Artifact> directArtifacts = resolutionGroup.getArtifacts();
    
                    if (artifacts == null || artifacts.isEmpty()) {
                        artifacts = directArtifacts;
                    } else {
                        List<Artifact> allArtifacts = new ArrayList<>();
                        allArtifacts.addAll(artifacts);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/JdkJavaCompiler.java

            while (optionsIter.hasNext()) {
                String current = optionsIter.next();
                if (current.equals("-sourcepath") || current.equals("--source-path")) {
                    return optionsIter.next().isEmpty();
                }
            }
            return false;
        }
    
        private void buildProblemFrom(RuntimeException ex, ProblemSpec spec) {
            spec.severity(Severity.ERROR);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 14:50:33 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/resolution/failure/describer/AmbiguousGraphVariantsFailureDescriber.java

            for (ResolutionCandidateAssessor.AssessedCandidate candidate : failure.getCandidates()) {
                ambiguousVariants.put(candidate.getDisplayName(), candidate);
            }
            if (failure.getRequestedAttributes().isEmpty()) {
                formatter.node("Cannot choose between the available variants of ");
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java

            new DefaultConsumerPomArtifactTransformer((session, project, src) -> null)
                    .injectTransformedArtifacts(systemSessionMock, emptyProject);
    
            assertThat(emptyProject.getAttachedArtifacts()).isEmpty();
        }
    
        private static class NoTransformerContext implements TransformerContext {
            @Override
            public String getUserProperty(String key) {
                return null;
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 12:04:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

       * @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()) {
          return of();
        }
    
        // TODO(lowasser): copy ImmutableSetMultimap by using asList() on the sets
        if (multimap instanceof ImmutableListMultimap) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(future.isDone()).isFalse();
        assertThat(executedRunnables).isEmpty();
        assertThat(pendingRunnables).hasSize(1);
        pendingRunnables.remove(0).run();
        assertThat(future.isDone()).isTrue();
        assertThat(executedRunnables).containsExactly(runnable);
        assertThat(pendingRunnables).isEmpty();
      }
    
      public void testSubmit_runnable_throwsException() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(future.isDone()).isFalse();
        assertThat(executedRunnables).isEmpty();
        assertThat(pendingRunnables).hasSize(1);
        pendingRunnables.remove(0).run();
        assertThat(future.isDone()).isTrue();
        assertThat(executedRunnables).containsExactly(runnable);
        assertThat(pendingRunnables).isEmpty();
      }
    
      public void testSubmit_runnable_throwsException() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Iterables.java

       *
       * @return {@code true} if the iterable contains no elements
       */
      public static boolean isEmpty(Iterable<?> iterable) {
        if (iterable instanceof Collection) {
          return ((Collection<?>) iterable).isEmpty();
        }
        return !iterable.iterator().hasNext();
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.5K bytes
    - Viewed (0)
Back to top