Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for Next (0.16 sec)

  1. src/test/java/org/codelibs/core/collection/LruHashMapTest.java

            assertThat(i.next(), is("bbb"));
            assertThat(i.next(), is("ccc"));
            assertThat(i.next(), is("aaa"));
            lru.put("ddd", "444");
            assertThat(lru.size(), is(3));
            assertThat(lru.get("bbb"), is(nullValue()));
            i = lru.keySet().iterator();
            assertThat(i.next(), is("ccc"));
            assertThat(i.next(), is("aaa"));
            assertThat(i.next(), is("ddd"));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

         */
        @Test
        public void testEntrySet() throws Exception {
            Iterator<Map.Entry<String, String>> i = map.entrySet().iterator();
            assertThat(i.next().getKey(), is(nullValue()));
            assertThat(i.next().getKey(), is("1"));
            assertThat(i.next().getKey(), is("2"));
        }
    
        /**
         * Test method for {@link org.seasar.util.collection.ArrayIterator#remove()}
         * .
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/EmptyIterator.java

            throw new ClUnsupportedOperationException("remove");
        }
    
        @Override
        public boolean hasNext() {
            return false;
        }
    
        @Override
        public T next() {
            throw new ClUnsupportedOperationException("next");
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/EmptyIteratorTest.java

        /**
         * Test method for {@link org.codelibs.core.collection.EmptyIterator#next()}.
         */
        @Test
        public void testNext() {
            exception.expect(ClUnsupportedOperationException.class);
            exception.expectMessage(is("next"));
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
            emptyIterator.next();
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/IndexedIterator.java

            this.index = 0;
        }
    
        @Override
        public boolean hasNext() {
            return iterator.hasNext();
        }
    
        @Override
        public Indexed<T> next() {
            return new Indexed<>(iterator.next(), index++);
        }
    
        @Override
        public void remove() {
            throw new ClUnsupportedOperationException("remove");
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/exception/SQLRuntimeException.java

            buf.append(cause.getMessage()).append(" : [");
            SQLException next = cause.getNextException();
            while (next != null) {
                buf.append(MessageFormatter.getSimpleMessage("ECL0071", next.getMessage(), Integer.toString(next.getErrorCode()),
                        next.getSQLState())).append("], [");
                next = next.getNextException();
            }
            Throwable t = cause.getCause();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/ClassIterator.java

        public boolean hasNext() {
            if (!includeObject && clazz == Object.class) {
                return false;
            }
            return clazz != null;
        }
    
        @Override
        public Class<?> next() {
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
            final Class<?> result = clazz;
            clazz = clazz.getSuperclass();
            return result;
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/SingleValueIterator.java

         */
        public SingleValueIterator(final E value) {
            this.value = value;
        }
    
        @Override
        public boolean hasNext() {
            return hasNext;
        }
    
        @Override
        public E next() {
            if (!hasNext) {
                throw new NoSuchElementException();
            }
            hasNext = false;
            return value;
        }
    
        @Override
        public void remove() {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java

            final Iterator<URL> itr = ClassLoaderUtil.getResources(this.getClass(), name);
            assertThat(itr, is(notNullValue()));
            final URL url = itr.next();
            assertThat(url, is(notNullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIsAncestor() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/io/LineIterator.java

        @Override
        public boolean hasNext() {
            if (line == EMPTY) {
                line = ReaderUtil.readLine(reader);
            }
            return line != null;
        }
    
        @Override
        public String next() {
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
            final String result = line;
            line = EMPTY;
            return result;
        }
    
        @Override
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top