Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for AbstractIterator (0.13 sec)

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

    // com.google.common.base.AbstractIterator
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class AbstractIterator<T extends @Nullable Object> extends UnmodifiableIterator<T> {
      private State state = State.NOT_READY;
    
      /** Constructor for use by subclasses. */
      protected AbstractIterator() {}
    
      private enum State {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 02:04:10 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/AbstractIterator.java

    /**
     * Note this class is a copy of {@link com.google.common.collect.AbstractIterator} (for dependency
     * reasons).
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    abstract class AbstractIterator<T extends @Nullable Object> implements Iterator<T> {
      private State state = State.NOT_READY;
    
      protected AbstractIterator() {}
    
      private enum State {
        READY,
        NOT_READY,
        DONE,
        FAILED,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/AbstractIteratorTest.java

    import java.util.NoSuchElementException;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@code AbstractIterator}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    public class AbstractIteratorTest extends TestCase {
    
      public void testDefaultBehaviorOfNextAndHasNext() {
    
        // This sample AbstractIterator returns 0 on the first call, 1 on the
        // second, then signals that it's reached the end of the data
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

      }
    
      public void testDefaultBehaviorOfPeek() {
        /*
         * This sample AbstractIterator returns 0 on the first call, 1 on the
         * second, then signals that it's reached the end of the data
         */
        AbstractIterator<Integer> iter =
            new AbstractIterator<Integer>() {
              private int rep;
    
              @Override
              public @Nullable Integer computeNext() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

      }
    
      public void testDefaultBehaviorOfPeek() {
        /*
         * This sample AbstractIterator returns 0 on the first call, 1 on the
         * second, then signals that it's reached the end of the data
         */
        AbstractIterator<Integer> iter =
            new AbstractIterator<Integer>() {
              private int rep;
    
              @Override
              public @Nullable Integer computeNext() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/MultiEdgesConnecting.java

     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.collect.AbstractIterator;
    import com.google.common.collect.UnmodifiableIterator;
    import java.util.AbstractSet;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Map.Entry;
    import javax.annotation.CheckForNull;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

    import static com.google.common.graph.Graphs.checkNonNegative;
    import static com.google.common.graph.Graphs.checkPositive;
    
    import com.google.common.base.Function;
    import com.google.common.collect.AbstractIterator;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Iterators;
    import com.google.common.collect.UnmodifiableIterator;
    import java.util.AbstractSet;
    import java.util.ArrayList;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 18K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ConsumingQueueIterator.java

     * iterates. This class is not thread safe.
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class ConsumingQueueIterator<T extends @Nullable Object> extends AbstractIterator<T> {
      private final Queue<T> queue;
    
      ConsumingQueueIterator(Queue<T> queue) {
        this.queue = checkNotNull(queue);
      }
    
      @Override
      @CheckForNull
      protected T computeNext() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jan 21 14:48:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/EndpointPairIterator.java

     */
    
    package com.google.common.graph;
    
    import static com.google.common.base.Preconditions.checkState;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.collect.AbstractIterator;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Sets;
    import java.util.Iterator;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

      }
    
      @Override
      Iterator<Entry<E>> entryIterator() {
        // AbstractIterator makes this fairly clean, but it doesn't support remove(). To support
        // remove(), we create an AbstractIterator, and then use ForwardingIterator to delegate to it.
        Iterator<Entry<E>> readOnlyIterator =
            new AbstractIterator<Entry<E>>() {
              private final Iterator<Map.Entry<E, AtomicInteger>> mapEntries =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top