Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 811 - 820 of 1,161 for IsEmpty (0.1 seconds)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java

      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testClear() {
        collection.clear();
        assertTrue("After clear(), a collection should be empty.", collection.isEmpty());
        assertEquals(0, collection.size());
        assertFalse(collection.iterator().hasNext());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/ArtifactCoordinates.java

            return getGroupId()
                    + ':'
                    + getArtifactId()
                    + ':'
                    + getExtension()
                    + ':'
                    + c
                    + (c.isEmpty() ? "" : ":")
                    + getVersionConstraint();
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jun 26 07:56:58 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/ClasspathContainer.java

        // -------------------------------------------------------------------------------------------
        public MetadataTreeNode getClasspathAsTree() throws MetadataResolutionException {
            if (classpath == null || classpath.isEmpty()) {
                return null;
            }
    
            MetadataTreeNode tree = null;
            MetadataTreeNode parent = null;
    
            for (ArtifactMetadata md : classpath) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t08/ProjectInheritanceTest.java

            System.out.println("Project " + project1.getId() + " " + project1);
            Set set = project1.getArtifacts();
            assertNotNull(set, "No artifacts");
            assertFalse(set.isEmpty(), "No Artifacts");
            Iterator iter = set.iterator();
            assertTrue(set.size() == 4, "Set size should be 4, is " + set.size());
    
            while (iter.hasNext()) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocMethodsBuilder.java

                }
                String methodName = cells.get(0).getTextContent().trim();
                Collection<MethodMetaData> methods = classDoc.getClassMetaData().findDeclaredMethods(methodName);
                if (methods.isEmpty()) {
                    throw new RuntimeException(String.format("No metadata for method '%s.%s()'. Available methods: %s", classDoc.getName(), methodName, classDoc.getClassMetaData().getDeclaredMethodNames()));
                }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/BufferCacheTest.java

                this.bufferSize = bufferSize;
                this.cache = new ArrayList<>(maxBuffers);
            }
    
            @Override
            public synchronized byte[] getBuffer() {
                if (!cache.isEmpty()) {
                    return cache.remove(0);
                }
                return new byte[bufferSize];
            }
    
            @Override
            public synchronized void releaseBuffer(byte[] buf) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/TransformLog4jConfigFilter.java

            boolean skipNextEmpty = false;
    
            final List<String> output = new ArrayList<>(lines.size());
    
            for (final String line : lines) {
                if (line.isEmpty()) {
                    if (skipNextEmpty) {
                        continue;
                    } else {
                        skipNextEmpty = true;
                    }
                } else {
                    skipNextEmpty = false;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 4.4K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

            if (roleTypeList != null && !roleTypeList.isEmpty()) {
                buf.append(";r=");
                buf.append(roleTypeList.stream().sorted().collect(Collectors.joining(",")));
            }
    
            @SuppressWarnings("unchecked")
            final List<String> virtualHostList = (List<String>) dataMap.get(fessConfig.getIndexFieldVirtualHost());
            if (virtualHostList != null && !virtualHostList.isEmpty()) {
                buf.append(";v=");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 15.2K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/SmbOperationException.java

            } catch (Exception e) {
                // Ignore
            }
        }
    
        private static String formatMessage(ErrorCode errorCode, String message) {
            if (message == null || message.isEmpty()) {
                return String.format("[%s] %s", errorCode.name(), errorCode.getDescription());
            }
            return String.format("[%s] %s: %s", errorCode.name(), errorCode.getDescription(), message);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/DockerSupportService.java

                try {
                    return Files.readAllLines(exclusionsFile.toPath())
                        .stream()
                        .map(String::trim)
                        .filter(line -> (line.isEmpty() || line.startsWith("#")) == false)
                        .collect(Collectors.toList());
                } catch (IOException e) {
                    throw new GradleException("Failed to read " + exclusionsFile.getAbsolutePath(), e);
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 14.8K bytes
    - Click Count (0)
Back to Top