Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 901 - 910 of 996 for useEmpty (0.13 seconds)

  1. 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 Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Table.java

       */
      @Nullable V get(
          @CompatibleWith("R") @Nullable Object rowKey,
          @CompatibleWith("C") @Nullable Object columnKey);
    
      /** Returns {@code true} if the table contains no mappings. */
      boolean isEmpty();
    
      /** Returns the number of row key / column key / value mappings in the table. */
      int size();
    
      /**
       * Compares the specified object with this table for equality. Two tables are equal when their
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

         * @param uri the URI to preprocess
         * @return the preprocessed URI
         * @throws CrawlerSystemException if the URI is empty
         */
        protected String preprocessUri(final String uri) {
            if (StringUtil.isEmpty(uri)) {
                throw new CrawlerSystemException("SMB URI is empty. Please provide a valid SMB URI (smb://...).");
            }
    
            return uri;
        }
    
        /**
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Dec 11 08:38:29 GMT 2025
    - 23.4K bytes
    - Click Count (3)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testToArrayEmpty() {
        Iterator<String> iterator = Collections.<String>emptyList().iterator();
        String[] array = Iterators.toArray(iterator, String.class);
        assertThat(array).isEmpty();
      }
    
      @GwtIncompatible // Iterators.toArray(Iterator, Class)
      public void testToArraySingleton() {
        Iterator<String> iterator = singletonList("a").iterator();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 56.7K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      }
    
      void checkEmpty(BlockingQueue<?> q) {
        try {
          assertTrue(q.isEmpty());
          assertEquals(0, q.size());
          assertThat(q.peek()).isNull();
          assertThat(q.poll()).isNull();
          assertThat(q.poll(0, MILLISECONDS)).isNull();
          assertEquals("[]", q.toString());
          assertThat(q.toArray()).isEmpty();
          assertFalse(q.iterator().hasNext());
          try {
            q.element();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 37.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                // Should not throw
                assertDoesNotThrow(() -> concreteImplementation.replaceCache());
    
                // Map should remain empty
                assertTrue(cacheMap.isEmpty());
            }
    
            @Test
            @DisplayName("Should handle replace without map")
            void testReplaceCacheWithoutMap() {
                concreteImplementation.setKey("key");
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 28.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/util/StringsTest.java

                // When
                byte[] result = Strings.getBytes(input, StandardCharsets.UTF_8);
    
                // Then
                assertNotNull(result, "Result should never be null");
                if (input == null || input.isEmpty()) {
                    assertEquals(0, result.length, "Null or empty input should produce empty array");
                } else {
                    assertTrue(result.length > 0, "Non-empty input should produce non-empty array");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/primitives/Longs.java

       *     Character.MAX_RADIX}
       * @throws NullPointerException if {@code string} is {@code null}
       * @since 19.0
       */
      public static @Nullable Long tryParse(String string, int radix) {
        if (checkNotNull(string).isEmpty()) {
          return null;
        }
        if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) {
          throw new IllegalArgumentException(
              "radix must be between MIN_RADIX and MAX_RADIX but was " + radix);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 29K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/Iterators.java

              queue.add(new IndexedIterator<>(peekingIterator(iterator), index++));
            }
          }
        }
    
        @Override
        public boolean hasNext() {
          return !queue.isEmpty();
        }
    
        @Override
        @ParametricNullness
        public T next() {
          IndexedIterator<T> nextIndexed = queue.remove();
          PeekingIterator<T> nextIter = nextIndexed.iterator;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 16 12:42:11 GMT 2025
    - 51.4K bytes
    - Click Count (0)
  10. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

      final Monitor monitor = new Monitor(true);
      private final Monitor.Guard notEmpty =
          new Monitor.Guard(monitor) {
            @Override
            public boolean isSatisfied() {
              return !q.isEmpty();
            }
          };
    
      /**
       * Creates a {@code MonitorBasedPriorityBlockingQueue} with the default initial capacity (11) that
       * orders its elements according to their {@linkplain Comparable natural ordering}.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 18.9K bytes
    - Click Count (0)
Back to Top