Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for AbstractSequentialIterator (0.33 sec)

  1. android/guava/src/com/google/common/collect/AbstractSequentialIterator.java

     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class AbstractSequentialIterator<T> extends UnmodifiableIterator<T> {
      @CheckForNull private T nextOrNull;
    
      /**
       * Creates a new iterator with the given first element, or, if {@code firstOrNull} is null,
       * creates a new empty iterator.
       */
      protected AbstractSequentialIterator(@CheckForNull T firstOrNull) {
        this.nextOrNull = firstOrNull;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 2.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractSequentialIterator.java

     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class AbstractSequentialIterator<T> extends UnmodifiableIterator<T> {
      @CheckForNull private T nextOrNull;
    
      /**
       * Creates a new iterator with the given first element, or, if {@code firstOrNull} is null,
       * creates a new empty iterator.
       */
      protected AbstractSequentialIterator(@CheckForNull T firstOrNull) {
        this.nextOrNull = firstOrNull;
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 2.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

        return new AbstractSequentialIterator<Integer>(first) {
          @Override
          protected @Nullable Integer computeNext(Integer previous) {
            return (previous == last) ? null : previous * 2;
          }
        };
      }
    
      private static class EmptyAbstractSequentialIterator<T> extends AbstractSequentialIterator<T> {
    
        public EmptyAbstractSequentialIterator() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

        return new AbstractSequentialIterator<Integer>(first) {
          @Override
          protected @Nullable Integer computeNext(Integer previous) {
            return (previous == last) ? null : previous * 2;
          }
        };
      }
    
      private static class EmptyAbstractSequentialIterator<T> extends AbstractSequentialIterator<T> {
    
        public EmptyAbstractSequentialIterator() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularContiguousSet.java

        C c = (C) requireNonNull(target);
        return (int) domain.distance(first(), c);
      }
    
      @Override
      public UnmodifiableIterator<C> iterator() {
        return new AbstractSequentialIterator<C>(first()) {
          final C last = last();
    
          @Override
          @CheckForNull
          protected C computeNext(C previous) {
            return equalsOrThrow(previous, last) ? null : domain.next(previous);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/package-info.java

     *   <li>{@link Sets}
     *   <li>{@link Streams}
     *   <li>{@link Tables}
     * </ul>
     *
     * <h2>Abstract implementations</h2>
     *
     * <ul>
     *   <li>{@link AbstractIterator}
     *   <li>{@link AbstractSequentialIterator}
     *   <li>{@link UnmodifiableIterator}
     *   <li>{@link UnmodifiableListIterator}
     * </ul>
     *
     * <h2>Forwarding collections</h2>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jul 06 16:29:45 GMT 2023
    - 5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LocalCache.java

    import com.google.common.cache.CacheLoader.InvalidCacheLoadException;
    import com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException;
    import com.google.common.collect.AbstractSequentialIterator;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterators;
    import com.google.common.collect.Maps;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LocalCache.java

    import com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException;
    import com.google.common.cache.LocalCache.AbstractCacheSet;
    import com.google.common.collect.AbstractSequentialIterator;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterators;
    import com.google.common.collect.Maps;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
Back to top