Java Iterator moveNext(Iterator iterator)

Here you can find the source of moveNext(Iterator iterator)

Description

move Next

License

Apache License

Declaration

@SuppressWarnings("rawtypes")
    public static boolean moveNext(Iterator iterator) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Iterator;

public class Main {
    @SuppressWarnings("rawtypes")
    public static boolean moveNext(Iterator iterator) {
        if (iterator.hasNext()) {
            iterator.next();//from   w w w  .  ja va  2  s  .co m
            return true;
        } else {
            return false;
        }
    }
}

Related

  1. limit(final Iterator iterator, final int limit)
  2. listOfIterator(Iterator iterator)
  3. makeCollection(final Iterator i)
  4. max(final Iterator iter, final int max)
  5. mergeIterator( final Iterator iterator1, final Iterator iterator2)
  6. multiIterator(Iterator... iterable)
  7. multiply(String string, Iterator placeholders, Iterator replacements)
  8. multiply(String string, Iterator placeholders, Iterator replacements)
  9. multiSetIterator(Iterator... iterable)