Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1081 - 1090 of 1,161 for IsEmpty (0.15 seconds)

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

                list.subList(0, size - 1),
                list.subList(1, size),
                list.subList(0, 0),
                list.subList(size, size))) {
          assertEquals(subList.size() == 0, subList.isEmpty());
        }
      }
    
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testSubList_get() {
        List<E> list = getList();
        int size = getNumElements();
        List<E> copy = list.subList(0, size);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  2. internal/event/target/nats.go

    	} `json:"streaming"`
    
    	RootCAs *x509.CertPool `json:"-"`
    }
    
    // Validate NATSArgs fields
    func (n NATSArgs) Validate() error {
    	if !n.Enable {
    		return nil
    	}
    
    	if n.Address.IsEmpty() {
    		return errors.New("empty address")
    	}
    
    	if n.Subject == "" {
    		return errors.New("empty subject")
    	}
    
    	if n.ClientCert != "" && n.ClientKey == "" || n.ClientCert == "" && n.ClientKey != "" {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Apr 27 04:30:57 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  3. internal/event/target/elasticsearch.go

    	Password   string          `json:"password"`
    }
    
    // Validate ElasticsearchArgs fields
    func (a ElasticsearchArgs) Validate() error {
    	if !a.Enable {
    		return nil
    	}
    	if a.URL.IsEmpty() {
    		return errors.New("empty URL")
    	}
    	if a.Format != "" {
    		f := strings.ToLower(a.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    			return errors.New("format value unrecognized")
    		}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 15K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/io/Files.java

       * sibling of {@code a} referred to by {@code b}.
       *
       * @since 11.0
       */
      public static String simplifyPath(String pathname) {
        checkNotNull(pathname);
        if (pathname.isEmpty()) {
          return ".";
        }
    
        // split the path apart
        Iterable<String> components = Splitter.on('/').omitEmptyStrings().split(pathname);
        List<String> path = new ArrayList<>();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jan 05 22:13:21 GMT 2026
    - 32.8K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * {@snippet :
     * final WeakHashMap<Object, Object> map = new WeakHashMap<>();
     * map.put(new Object(), Boolean.TRUE);
     * GcFinalization.awaitDone(new FinalizationPredicate() {
     *   public boolean isDone() {
     *     return map.isEmpty();
     *   }
     * });
     * }
     *
     * <p>Even if your non-test code does not use finalization, you can use this class to test for
     * leaks, by ensuring that objects are no longer strongly referenced:
     *
     * {@snippet :
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:19:19 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  6. src/main/java/jcifs/util/ServerResponseValidator.java

         * @throws SmbException if path is invalid
         */
        public void validatePath(String path) throws SmbException {
            totalValidations.incrementAndGet();
    
            if (path == null || path.isEmpty()) {
                return; // Empty paths allowed
            }
    
            // Check overall path length
            if (path.length() > MAX_PATH_SIZE) {
                failedValidations.incrementAndGet();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java

        }
    
        private static Method getMostSpecific(List<Method> methods, Class<?>... classes) throws AmbiguousException {
            LinkedList<Method> applicables = getApplicables(methods, classes);
    
            if (applicables.isEmpty()) {
                return null;
            }
    
            if (applicables.size() == 1) {
                return applicables.getFirst();
            }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java

                cb.query().setConfigId_Equal(configId);
                cb.query().setErrorCount_GreaterEqual(count);
                cb.fetchFirst(fessConfig.getPageFailureUrlMaxFetchSizeAsInteger());
            });
            if (list.isEmpty()) {
                return Collections.emptyList();
            }
    
            Pattern pattern = null;
            if (StringUtil.isNotBlank(ignoreFailureType)) {
                pattern = Pattern.compile(ignoreFailureType);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 19.5K bytes
    - Click Count (1)
  9. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            protwordsFile.reload(null);
    
            // Test with offset out of bounds
            PagingList<ProtwordsItem> list = protwordsFile.selectList(100, 10);
            assertEquals(0, list.size());
            assertTrue(list.isEmpty());
        }
    
        @Test
        public void test_selectList_negativeOffset() {
            // Load data first
            protwordsFile.reload(null);
    
            // Test with negative offset
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.2K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

        val calls = connection.calls
        val index = calls.indexOfFirst { it.get() == this@RealCall }
        check(index != -1)
    
        calls.removeAt(index)
        this.connection = null
    
        if (calls.isEmpty()) {
          connection.idleAtNs = System.nanoTime()
          if (connectionPool.connectionBecameIdle(connection)) {
            return connection.socket()
          }
        }
    
        return null
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 19.5K bytes
    - Click Count (0)
Back to Top