Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for Clements (1.85 sec)

  1. src/main/java/org/codelibs/core/collection/LruHashSet.java

        /**
         * Returns an iterator over the elements in this set. The elements are
         * returned in no particular order.
         *
         * @return an Iterator over the elements in this set.
         * @see ConcurrentModificationException
         */
        @Override
        public Iterator<E> iterator() {
            return map.keySet().iterator();
        }
    
        /**
         * Returns the number of elements in this set (its cardinality).
         *
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

            assertTrue(iterator.hasNext(), "Should have third element");
            SmbResource third = iterator.next();
            assertNotNull(third, "Third element should not be null");
            assertEquals("file3.txt", third.getName());
    
            assertFalse(iterator.hasNext(), "Should not have more elements");
        }
    
        /**
         * Test iterator with filter that accepts all elements.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/util/StringUtilTest.java

        @DisplayName("Should handle various element counts")
        @ValueSource(ints = { 1, 2, 5, 10, 20, 50, 100 })
        void testJoinWithVariousElementCounts(int count) {
            CharSequence[] elements = new CharSequence[count];
            for (int i = 0; i < count; i++) {
                elements[i] = String.valueOf(i);
            }
            String result = StringUtil.join(",", elements);
    
            // Verify result contains all elements
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/util/StringUtil.java

         *
         * @param delimiter the separator to use between elements
         * @param elements the elements to join
         * @return elements separated by delimiter
         */
        public static String join(final CharSequence delimiter, final CharSequence... elements) {
            final StringBuilder sb = new StringBuilder();
            for (final CharSequence element : elements) {
                if (sb.length() > 0) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

                }
            }
            return map;
        }
    
        /**
         * Returns the value of an annotation element.
         *
         * @param beanDesc the {@link BeanDesc} representing the annotation
         * @param annotation the annotation
         * @param name the name of the element
         * @return the value of the annotation element
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/SLinkedList.java

            final Entry entry = getEntry(index);
            final E oldValue = entry.element;
            entry.element = element;
            return oldValue;
        }
    
        /**
         * Returns the position of the element.
         *
         * @param element the element
         * @return the position
         */
        public int indexOf(final E element) {
            int index = 0;
            if (element == null) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/ArrayIterator.java

     *
     * String[] array = ...;
     * for (String element : iterable(array)) {
     *     ...
     * }
     * </pre>
     *
     * @author shot
     * @param <T> the type of array elements
     */
    public class ArrayIterator<T> implements Iterator<T> {
    
        /** The array of elements to iterate over */
        protected final T[] items;
    
        /** The index of the currently referenced element */
        protected int index = 0;
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         * <li>If <code>type</code> is an array, the actual class of its elements is returned.</li>
         * <li>Otherwise, <code>null</code> is returned.</li>
         * </ul>
         *
         * @param type
         *            the type to analyze
         * @param map
         *            the map that contains the type variables and type arguments
         * @return the actual element type of the array, or null if not an array of parameterized types
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

        }
    
        /**
         * Adds an element to the beginning of a sequenced collection.
         *
         * @param <E> the element type
         * @param collection the sequenced collection
         * @param element the element to add
         * @since Java 21
         */
        public static <E> void addFirst(final SequencedCollection<E> collection, final E element) {
            collection.addFirst(element);
        }
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            // Test the nextElement method from Enumeration interface
            SmbComTransactionResponse element = response.nextElement();
    
            // Should return itself
            assertSame(response, element);
    
            // Can be called multiple times
            element = response.nextElement();
            assertSame(response, element);
        }
    
        @Test
        @DisplayName("Test with various Configuration implementations")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
Back to top