Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MultiIterator (0.12 sec)

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

     *
     * <pre>
     * import static org.codelibs.core.collection.MultiIterator.*;
     *
     * List&lt;String&gt; list = ...;
     * Set&lt;String&gt; set = ...;
     * Map&lt;String, Object&gt; map = ...;
     * for (String element : iterable(list, set, map.keySet())) {
     *     ...
     * }
     * </pre>
     *
     * @author koichik
     * @param <E>
     *            要素の型
     */
    public class MultiIterator<E> implements Iterator<E> {
    
        /** {@link Iterator}の配列 */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/MultiIteratorTest.java

        public void test() {
            final List<String> list1 = asList("Foo", "Bar");
            final List<String> list2 = asList("Baz");
    
            @SuppressWarnings("unchecked")
            final Iterator<String> it = new MultiIterator<String>(list1.iterator(), list2.iterator());
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Foo"));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Bar"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

    import static java.text.DateFormat.LONG;
    import static java.text.DateFormat.MEDIUM;
    import static java.text.DateFormat.SHORT;
    import static java.text.DateFormat.getDateInstance;
    import static org.codelibs.core.collection.MultiIterator.iterable;
    import static org.codelibs.core.lang.StringUtil.isEmpty;
    import static org.codelibs.core.lang.StringUtil.isNotEmpty;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top