Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 209 for isEmpty (0.05 sec)

  1. src/main/java/org/codelibs/core/misc/AssertionUtil.java

         *             If the argument is <code>null</code> or an empty string.
         */
        public static void assertArgumentNotEmpty(final String argName, final String argValue) {
            if (StringUtil.isEmpty(argValue)) {
                throw new EmptyArgumentException(argName, "ECL0010", asArray(argName));
            }
        }
    
        /**
         * Asserts that the argument is neither <code>null</code> nor an empty string.
         *
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/IpAddressUtil.java

                final int leftCount = leftPart.isEmpty() ? 0 : leftPart.split(":").length;
                final int rightCount = rightPart.isEmpty() ? 0 : rightPart.split(":").length;
                final int zerosCount = 8 - leftCount - rightCount;
                final StringBuilder expanded = new StringBuilder(leftPart);
                for (int i = 0; i < zerosCount; i++) {
                    if (expanded.length() > 0) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 06 08:31:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/CollectionsUtilTest.java

         * Test method for
         * {@link org.codelibs.core.collection.CollectionsUtil#isEmpty(java.util.Collection)}
         * .
         */
        @Test
        public void testIsEmptyCollectionOfQ() {
            Collection<String> c = null;
            assertThat(CollectionsUtil.isEmpty(c), is(true));
            c = new ArrayList<String>();
            assertThat(CollectionsUtil.isEmpty(c), is(true));
        }
    
        /**
         * Test method for
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/SLinkedList.java

         * @return the first element
         */
        public E getFirst() {
            if (isEmpty()) {
                throw new NoSuchElementException();
            }
            return getFirstEntry().element;
        }
    
        /**
         * Returns the last element.
         *
         * @return the last element
         */
        public E getLast() {
            if (isEmpty()) {
                throw new NoSuchElementException();
            }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.java

            return map.keySet().iterator();
        }
    
        @Override
        public int size() {
            return map.size();
        }
    
        @Override
        public boolean isEmpty() {
            return map.isEmpty();
        }
    
        @Override
        public boolean contains(final Object o) {
            return map.containsKey(o);
        }
    
        @Override
        public boolean add(final String o) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

            assertEquals(boost, elevateWord.getBoost(), 0.001f);
            assertTrue(elevateWord.getReadings().isEmpty());
            assertTrue(elevateWord.getFields().isEmpty());
            assertTrue(elevateWord.getTags().isEmpty());
            assertTrue(elevateWord.getRoles().isEmpty());
        }
    
        @Test
        public void testConstructorWithNullWord() {
            // Test constructor with null word
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/StringUtil.java

         */
        public static final boolean isEmpty(final String text) {
            return text == null || text.length() == 0;
        }
    
        /**
         * Checks if the string is not empty.
         *
         * @param text the string to check
         * @return true if not empty, false otherwise
         */
        public static final boolean isNotEmpty(final String text) {
            return !isEmpty(text);
        }
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

            case Boolean b -> b ? 1L : 0L;
            default -> toLong(o.toString());
            };
        }
    
        private static Long toLong(final String s) {
            if (StringUtil.isEmpty(s)) {
                return null;
            }
            return Long.valueOf(DecimalFormatUtil.normalize(s));
        }
    
        /**
         * Converts the given object to a {@literal long}.
         *
         * @param o
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/SuggestDeleteResponse.java

            this.took = took;
            if (errors != null && !errors.isEmpty()) {
                this.errors.addAll(errors);
            }
        }
    
        /**
         * Checks if the response has any errors.
         * @return True if there are errors, false otherwise.
         */
        public boolean hasError() {
            return !errors.isEmpty();
        }
    
        /**
         * Returns the list of errors.
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/PathValidator.java

                if (path != null && !path.isEmpty()) {
                    validatePath(path);
                }
    
                // Reconstruct normalized URL
                StringBuilder normalized = new StringBuilder("smb://");
    
                // Add credentials if present
                String userInfo = url.getUserInfo();
                if (userInfo != null && !userInfo.isEmpty()) {
                    // Don't log credentials
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
Back to top