Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 371 for hasNext (0.15 sec)

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

          return -1;
        }
        List<?> list = (List<?>) o;
        if (list.size() != axes.size()) {
          return -1;
        }
        ListIterator<?> itr = list.listIterator();
        int computedIndex = 0;
        while (itr.hasNext()) {
          int axisIndex = itr.nextIndex();
          int elemIndex = axes.get(axisIndex).indexOf(itr.next());
          if (elemIndex == -1) {
            return -1;
          }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

          final Iterator<Map.Entry<E, Integer>> backingEntries = backingMap.entrySet().iterator();
          return new UnmodifiableIterator<Multiset.Entry<E>>() {
            @Override
            public boolean hasNext() {
              return backingEntries.hasNext();
            }
    
            @Override
            public Multiset.Entry<E> next() {
              final Map.Entry<E, Integer> mapEntry = backingEntries.next();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

          final Iterator<Map.Entry<E, Integer>> backingEntries = backingMap.entrySet().iterator();
          return new UnmodifiableIterator<Multiset.Entry<E>>() {
            @Override
            public boolean hasNext() {
              return backingEntries.hasNext();
            }
    
            @Override
            public Multiset.Entry<E> next() {
              final Map.Entry<E, Integer> mapEntry = backingEntries.next();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingIterator.java

      /** Constructor for use by subclasses. */
      protected ForwardingIterator() {}
    
      @Override
      protected abstract Iterator<T> delegate();
    
      @Override
      public boolean hasNext() {
        return delegate().hasNext();
      }
    
      @CanIgnoreReturnValue
      @Override
      @ParametricNullness
      public T next() {
        return delegate().next();
      }
    
      @Override
      public void remove() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/ntlmssp/av/AvPairs.java

         * @param type
         * @return first occurance of the given type
         */
        public static AvPair get ( List<AvPair> pairs, int type ) {
            Iterator<AvPair> it = pairs.iterator();
            while ( it.hasNext() ) {
                AvPair p = it.next();
                if ( p.getType() == type ) {
                    return p;
                }
            }
            return null;
        }
    
    
        /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          Iterator<String> iterator = components.iterator();
          if (iterator.hasNext()) {
            sb.append(iterator.next().toString());
            while (iterator.hasNext()) {
              sb.append(DELIMITER_STRING);
              sb.append(iterator.next());
            }
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

      override fun find(): RealConnection {
        var firstException: IOException? = null
        try {
          while (tcpConnectsInFlight.isNotEmpty() || routePlanner.hasNext()) {
            if (routePlanner.isCanceled()) throw IOException("Canceled")
    
            // Launch a new connection if we're ready to.
            val now = taskRunner.backend.nanoTime()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/ClassLoaderIterator.java

            assertArgumentNotNull("classLoader", classLoader);
            this.classLoader = classLoader;
        }
    
        @Override
        public boolean hasNext() {
            return classLoader != null;
        }
    
        @Override
        public ClassLoader next() {
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
            final ClassLoader result = classLoader;
            classLoader = classLoader.getParent();
    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)
  9. src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java

            list.add("aaa");
            list.add("bbb");
            list.add("ccc");
    
            final IndexedIterator<String> it = new IndexedIterator<String>(list.iterator());
    
            assertThat(it.hasNext(), is(true));
    
            final Indexed<String> indexed1 = it.next();
            assertThat(indexed1.getIndex(), is(0));
            assertThat(indexed1.getElement(), is("aaa"));
    
            final Indexed<String> indexed2 = it.next();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Joiner.java

      public <A extends Appendable> A appendTo(A appendable, Iterator<? extends @Nullable Object> parts)
          throws IOException {
        checkNotNull(appendable);
        if (parts.hasNext()) {
          appendable.append(toString(parts.next()));
          while (parts.hasNext()) {
            appendable.append(separator);
            appendable.append(toString(parts.next()));
          }
        }
        return appendable;
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
Back to top