Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 149 for enumeration (0.14 sec)

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

         *
         * @param <T>
         *            列挙する要素の型
         * @param enumeration
         *            {@link Enumeration}。{@literal null}であってはいけません
         * @return {@link Enumeration}をラップした{@link Iterable}
         */
        public static <T> Iterable<T> iterable(final Enumeration<T> enumeration) {
            assertArgumentNotNull("enumeration", enumeration);
    
            return () -> new EnumerationIterator<>(enumeration);
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/ServiceLocatorTest.groovy

            1 * classLoader.getResources("META-INF/services/java.lang.CharSequence") >> Collections.enumeration([serviceFile1, serviceFile2])
            1 * classLoader.loadClass('org.gradle.ImplClass') >> String
            1 * classLoader.loadClass('org.gradle.ImplClass2') >> StringBuilder
            1 * classLoader2.getResources("META-INF/services/java.lang.CharSequence") >> Collections.enumeration([serviceFile3, serviceFile4])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitClassDetectionIntegrationTest.groovy

            ZipFile originalJar = new ZipFile(jar)
    
            originalJar.withCloseable {
                Enumeration<? extends ZipEntry> enumeration = originalJar.entries()
                assert enumeration.hasMoreElements()
                String name = enumeration.nextElement().name
                assert name == entry
                assert !enumeration.hasMoreElements()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/MultiParentClassLoader.java

            }
            return null;
        }
    
        @SuppressWarnings("URLEqualsHashCode")
        @Override
        public Enumeration<URL> getResources(String name) throws IOException {
            Set<URL> resources = new LinkedHashSet<URL>();
            for (ClassLoader parent : parents) {
                Enumeration<URL> parentResources = parent.getResources(name);
                while (parentResources.hasMoreElements()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/ASN1Util.java

        }
    
    
        /**
         * 
         * @param type
         * @param enumeration
         * @return next element from enumeration cast to type
         * @throws PACDecodingException
         */
        public static <T extends Object> T as ( Class<T> type, Enumeration<?> enumeration ) throws PACDecodingException {
            return as(type, enumeration.nextElement());
        }
    
    
        /**
         * 
         * @param type
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

        /**
         * Test method for
         * {@link org.codelibs.core.collection.EnumerationIterator#EnumerationIterator(Enumeration)}
         * .
         */
        @Test
        public void testCopyDestNull() {
            exception.expect(NullArgumentException.class);
            exception.expectMessage(is("[ECL0008]argument[enumeration] is null."));
            new EnumerationIterator<Object>(null);
        }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/IteratorEnumeration.java

    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.util.Enumeration;
    import java.util.Iterator;
    
    /**
     * {@link Iterator}を {@link Enumeration}にするためのアダブタです。
     *
     * @author higa
     * @param <T>
     *            列挙する要素の型
     */
    public class IteratorEnumeration<T> implements Enumeration<T> {
    
        /** 反復子 */
        protected final Iterator<T> iterator;
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. src/mdo/java/WrapperProperties.java

        public boolean isEmpty() {
            return getter.get().isEmpty();
        }
    
        @Override
        public Enumeration<Object> keys() {
            return Collections.enumeration((Set) getter.get().keySet());
        }
    
        @Override
        public Enumeration<Object> elements() {
            return Collections.enumeration((Collection) getter.get().values());
        }
    
        @Override
        public boolean contains(Object value) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Mar 01 16:30:18 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/InetAddresses.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import java.net.InetAddress;
    import java.net.NetworkInterface;
    import java.net.SocketException;
    import java.util.ArrayList;
    import java.util.Enumeration;
    import java.util.List;
    
    /**
     * Provides some information about the network addresses of the local machine.
     */
    class InetAddresses {
        private final Logger logger = LoggerFactory.getLogger(getClass());
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/EmptyEnumeration.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.collection;
    
    import java.util.Enumeration;
    
    /**
     * 空の {@link Enumeration}です。
     *
     * @author higa
     * @param <T>
     *            列挙する要素の型
     */
    public class EmptyEnumeration<T> extends IteratorEnumeration<T> {
    
        /**
         * {@link EmptyEnumeration}を作成します。
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1K bytes
    - Viewed (0)
Back to top