Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 757 for hasExt (0.23 sec)

  1. guava/src/com/google/common/collect/AbstractIterator.java

       * there are no elements left in the iteration. Failure to do so could result in an infinite loop.
       *
       * <p>The initial invocation of {@link #hasNext()} or {@link #next()} calls this method, as does
       * the first invocation of {@code hasNext} or {@code next} following each successful call to
       * {@code next}. Once the implementation either invokes {@code endOfData} or throws an exception,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 18 02:04:10 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

      }
    
      public void testOf_one() {
        Iterable<String> iterable = MinimalIterable.of("a");
        Iterator<String> iterator = iterable.iterator();
        assertTrue(iterator.hasNext());
        assertEquals("a", iterator.next());
        assertFalse(iterator.hasNext());
        try {
          iterator.next();
          fail();
        } catch (NoSuchElementException expected) {
        }
        try {
          iterable.iterator();
          fail();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  3. 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() {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. test/typeparam/issue50642.go

    var temp2 Stringer
    
    func (it Temp2[T]) HasNext() string {
    	var x map[int]T
    
    	var ok bool
    	// test conversion of T to Stringer during an OAS2MAPR
    	temp2, ok = x[43]
    	_ = ok
    	return temp2.String()
    }
    
    func main() {
    	ch1 := make(chan int, 2)
    	ch1 <- 5
    	ch1 <- 6
    	ch = ch1
    	iter := Temp[int]{}
    	iter.HasNext()
    
    	iter2 := Temp2[MyInt]{}
    	if got, want := iter2.HasNext(), "a"; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1013 bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/io/LineIteratorTest.java

            final LineIterator it = new LineIterator(reader);
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("aaa"));
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("bbb"));
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("ccc"));
            assertThat(it.hasNext(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/ClassLoaderIteratorTest.java

            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameInstance(cl3)));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameInstance(cl2)));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is(sameInstance(cl1)));
    
            assertThat(it.hasNext(), is(not(true)));
        }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/collection/MultiIteratorTest.java

            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Foo"));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Bar"));
    
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Baz"));
    
            assertThat(it.hasNext(), is(not(true)));
        }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/PairwiseEquivalence.java

        Iterator<T> iteratorA = iterableA.iterator();
        Iterator<T> iteratorB = iterableB.iterator();
    
        while (iteratorA.hasNext() && iteratorB.hasNext()) {
          if (!elementEquivalence.equivalent(iteratorA.next(), iteratorB.next())) {
            return false;
          }
        }
    
        return !iteratorA.hasNext() && !iteratorB.hasNext();
      }
    
      @Override
      protected int doHash(Iterable<T> iterable) {
        int hash = 78721;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        abstract T output(@ParametricNullness K key, @ParametricNullness V value);
    
        @Override
        public boolean hasNext() {
          return keyIterator.hasNext() || valueIterator.hasNext();
        }
    
        @Override
        @ParametricNullness
        public T next() {
          if (!valueIterator.hasNext()) {
            Entry<K, Collection<V>> mapEntry = keyIterator.next();
            key = mapEntry.getKey();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 46.6K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/AbstractIterationOrderRetainingElementSourceTest.groovy

            iterator.remove()
    
            then:
            !iterator.hasNext()
            source.iteratorNoFlush().collect() == []
    
            when:
            source.add("buzz")
            iterator = source.iteratorNoFlush()
            next = iterator.next()
    
            then:
            next == "buzz"
    
            when:
            iterator.remove()
    
            then:
            !iterator.hasNext()
    
            when:
            source.add("bazz")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 25 10:08:46 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top