Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 651 for iterators (0.1 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java

     * target iterators on demand. It also requires three additional constructor parameters: {@code
     * elementsToInsert}, the elements to be passed to {@code set()} and {@code add()} calls; {@code
     * features}, the features supported by the iterator; and {@code expectedElements}, the elements the
     * iterator should return in order.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

            return set1.isEmpty() && set2.isEmpty();
          }
    
          @Override
          public UnmodifiableIterator<E> iterator() {
            return new AbstractIterator<E>() {
              final Iterator<? extends E> itr1 = set1.iterator();
              final Iterator<? extends E> itr2 = set2.iterator();
    
              @Override
              @CheckForNull
              protected E computeNext() {
                if (itr1.hasNext()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/TreeBasedTable.java

        return super.rowMap();
      }
    
      /** Overridden column iterator to return columns values in globally sorted order. */
      @Override
      Iterator<C> createColumnKeyIterator() {
        Comparator<? super C> comparator = columnComparator();
    
        Iterator<C> merged =
            mergeSorted(
                transform(backingMap.values(), (Map<C, V> input) -> input.keySet().iterator()),
                comparator);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/SingletonImmutableSet.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Iterators.singletonIterator;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        Iterator<Entry<K, V>> entryIterator() {
          return Iterators.filter(unfiltered.entrySet().iterator(), entryPredicate);
        }
    
        @Override
        Iterator<Entry<K, V>> descendingEntryIterator() {
          return Iterators.filter(unfiltered.descendingMap().entrySet().iterator(), entryPredicate);
        }
    
        @Override
        public int size() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        Iterator<Entry<K, V>> entryIterator() {
          return Iterators.filter(unfiltered.entrySet().iterator(), entryPredicate);
        }
    
        @Override
        Iterator<Entry<K, V>> descendingEntryIterator() {
          return Iterators.filter(unfiltered.descendingMap().entrySet().iterator(), entryPredicate);
        }
    
        @Override
        public int size() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/PeekingIterator.java

     * PeekingIterator}</a>.
     *
     * @author Mick Killianey
     * @since 2.0
     */
    @DoNotMock("Use Iterators.peekingIterator")
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface PeekingIterator<E extends @Nullable Object> extends Iterator<E> {
      /**
       * Returns the next element in the iteration, without advancing the iteration.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMapValues.java

          }
        };
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        return object != null && Iterators.contains(iterator(), object);
      }
    
      @Override
      boolean isPartialView() {
        return true;
      }
    
      @Override
      public ImmutableList<V> asList() {
        final ImmutableList<Entry<K, V>> entryList = map.entrySet().asList();
        return new ImmutableList<V>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/RangeSet.java

      Range<C> span();
    
      // Views
    
      /**
       * Returns a view of the {@linkplain Range#isConnected disconnected} ranges that make up this
       * range set. The returned set may be empty. The iterators returned by its {@link
       * Iterable#iterator} method return the ranges in increasing order of lower bound (equivalently,
       * of upper bound).
       */
      Set<Range<C>> asRanges();
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      public void testDescendingNavigation() {
        List<Entry<E>> ascending = new ArrayList<>();
        Iterators.addAll(ascending, sortedMultiset.entrySet().iterator());
        List<Entry<E>> descending = new ArrayList<>();
        Iterators.addAll(descending, sortedMultiset.descendingMultiset().entrySet().iterator());
        Collections.reverse(descending);
        assertEquals(ascending, descending);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top