Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for iterables (1.27 sec)

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

        /**
         * Returns an {@link Iterable} that wraps an {@link Enumeration} for use in a for-each statement.
         *
         * @param <T> the element type
         * @param enumeration the enumeration (must not be {@literal null})
         * @return an {@link Iterable} wrapping the enumeration
         */
        public static <T> Iterable<T> iterable(final Enumeration<T> enumeration) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/ArrayIterator.java

        protected int index = 0;
    
        /**
         * Returns an {@link Iterable} that wraps the array for use in a for-each statement.
         *
         * @param <T> the type of elements
         * @param items the array of elements to iterate (must not be {@literal null})
         * @return an {@link Iterable} wrapping the array
         */
        public static <T> Iterable<T> iterable(final T... items) {
            assertArgumentNotNull("items", items);
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/SingleValueIterator.java

        /**
         * Returns an {@link Iterable} that wraps a {@link SingleValueIterator} for use in a for-each statement.
         *
         * @param <E> the element type
         * @param value the single value returned by the iterator
         * @return an {@link Iterable} wrapping a {@link SingleValueIterator}
         */
        public static <E> Iterable<E> iterable(final E value) {
            return () -> new SingleValueIterator<>(value);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactory.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.beans.factory;
    
    import static org.codelibs.core.collection.ArrayIterator.iterable;
    import static org.codelibs.core.collection.IndexedIterator.indexed;
    import static org.codelibs.core.lang.GenericsUtil.getActualClass;
    import static org.codelibs.core.lang.GenericsUtil.getGenericParameters;
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbAuthenticationHolder.java

     * authentication based on a given path.
     *
     * <p>This class manages a collection of {@link SmbAuthentication} objects, each associated
     * with a specific path prefix. When a path is provided, it iterates through the stored
     * authentications to find the one whose path prefix matches the beginning of the given path.
     * This allows for different SMB shares to use different authentication credentials.</p>
     */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.io;
    
    import static org.codelibs.core.collection.EnumerationIterator.iterable;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.File;
    import java.io.FilterInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

            return propertyDescCache.getAt(index);
        }
    
        @Override
        public int getPropertyDescSize() {
            return propertyDescCache.size();
        }
    
        @Override
        public Iterable<PropertyDesc> getPropertyDescs() {
            return unmodifiableCollection(propertyDescCache.values());
        }
    
        @Override
        public boolean hasFieldDesc(final String fieldName) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 25.8K bytes
    - Viewed (1)
  8. src/test/java/org/codelibs/core/io/LineIteratorTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testForEach() throws Exception {
            final StringReader reader = new StringReader("aaa\nbbb\nccc\n");
            for (final String line : LineIterator.iterable(reader)) {
                System.out.println(line);
            }
        }
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

         * @return The converted {@link Date}.
         */
        @SuppressWarnings("unchecked")
        protected static Date toDate(final String str, final Locale locale) {
            for (final DateFormat format : MultiIterator.iterable(new DateFormatIterator(locale), new PlainDateFormatIterator(str, locale))) {
                if (format == null) {
                    continue;
                }
                final Date date = toDate(str, format);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

         * @return The converted {@link Date}.
         */
        @SuppressWarnings("unchecked")
        protected static Date toDate(final String str, final Locale locale) {
            for (final DateFormat format : MultiIterator.iterable(new DateFormatIterator(locale), new PlainDateFormatIterator(str, locale))) {
                if (format == null) {
                    continue;
                }
                final Date date = toDate(str, format);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.6K bytes
    - Viewed (0)
Back to top