Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for hasNext (0.22 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultDependencyManagementImporter.java

                Iterator<Exclusion> i1 = ce1.iterator();
                Iterator<Exclusion> i2 = ce2.iterator();
                while (i1.hasNext() && i2.hasNext()) {
                    if (!equals(i1.next(), i2.next())) {
                        return false;
                    }
                }
                return !i1.hasNext() && !i2.hasNext();
            }
            return false;
        }
    
        private boolean equals(Exclusion e1, Exclusion e2) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        // known nonempty since we checked targets.size() > 1
    
        if (!thisIterator.hasNext()) {
          return false;
        }
    
        Object target = thatIterator.next();
        E current = thisIterator.next();
        try {
          while (true) {
            int cmp = unsafeCompare(current, target);
    
            if (cmp < 0) {
              if (!thisIterator.hasNext()) {
                return false;
              }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/EmptyIteratorTest.java

            emptyIterator.remove();
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.collection.EmptyIterator#hasNext()}.
         */
        @Test
        public void testHasNext() {
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
            assertThat(emptyIterator.hasNext(), is(false));
        }
    
        /**
         * Test method for {@link org.codelibs.core.collection.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)
  4. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

            vector.add("a");
            final EnumerationIterator<String> itr = new EnumerationIterator<String>(vector.elements());
            assertThat(itr.hasNext(), is(true));
            assertThat(itr.next(), is("a"));
            assertThat(itr.hasNext(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemove() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/PropertiesAsMap.java

                        {
                            advance();
                        }
    
                        private void advance() {
                            next = null;
                            while (iterator.hasNext()) {
                                Entry<Object, Object> e = iterator.next();
                                if (PropertiesAsMap.matches(e)) {
                                    next = new Entry<String, String>() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

      }
    
      /**
       * Returns true if there's another set of routes to attempt. Every address has at least one route.
       */
      operator fun hasNext(): Boolean = hasNextProxy() || postponedRoutes.isNotEmpty()
    
      @Throws(IOException::class)
      operator fun next(): Selection {
        if (!hasNext()) throw NoSuchElementException()
    
        // Compute the next set of routes to attempt.
        val routes = mutableListOf<Route>()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/collection/SingleValueIteratorTest.java

        /**
         *
         */
        @Test
        public void test() {
            final SingleValueIterator<String> it = new SingleValueIterator<String>("Foo");
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Foo"));
            assertThat(it.hasNext(), is(not(true)));
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/EnumMultiset.java

        abstract T output(int index);
    
        @Override
        public boolean hasNext() {
          for (; index < enumConstants.length; index++) {
            if (counts[index] > 0) {
              return true;
            }
          }
          return false;
        }
    
        @Override
        public T next() {
          if (!hasNext()) {
            throw new NoSuchElementException();
          }
          T result = output(index);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

          this.iterator = iterable.iterator();
        }
    
        @Override
        public boolean hasNext() {
          return true; // pretend that you have more...
        }
    
        @Override
        public E next() {
          // ...but throw an unchecked exception when you ask for it.
          if (!iterator.hasNext()) {
            throw new ThrowsAtEndException();
          }
          return iterator.next();
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/IndexedIterator.java

            assertArgumentNotNull("iterator", iterator);
    
            this.iterator = iterator;
            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() {
    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)
Back to top