List of usage examples for java.util Iterator interface-usage
From source file IteratorIterable.java
/**
* Adapt iterator to iterable
*
* @author Hong Hong
*
* @param Iterator type
From source file IterableString.java
class IterableString implements Iterable<Character>, Iterator<Character> { private String str; private int count = 0; IterableString(String s) { str = s;
From source file NullIterator.java
/*********************************************************************
* A singleton null object Iterator implementation.
*
* @version 2003-05-12
* @since 2003-05-10
* @author <a href="http://www.CroftSoft.com/">David Wallace Croft</a>
From source file EmptyIterator.java
/**
* An EmptyIterator.
*
* @author Robin Sharp
*/
From source file IterableString.java
class IterableString implements Iterable<Character>, Iterator<Character> { private String str; private int count = 0; public IterableString(String s) {
From source file IterableString.java
class IterableString implements Iterable<Character>, Iterator<Character> { private String str; private int count = 0; public IterableString(String s) {
From source file edu.berkeley.compbio.ml.cluster.ClusterableIteratorFactory.java
/**
* A Factory for new Iterators based on a Collection. Each provided Iterator is a new, independent object, iterating in
* whatever order the underlying Collection provides (which may or may not be defined).
*
* @author <a href="mailto:dev@davidsoergel.com">David Soergel</a>
* @version $Id: CollectionIteratorFactory.java 313 2009-02-23 03:36:52Z soergel $
From source file com.opensymphony.webwork.util.Counter.java
/**
* A bean that can be used to keep track of a counter.
* <p/>
* Since it is an Iterator it can be used by the iterator tag
*
* @author Rickard berg (rickard@middleware-company.com)
From source file org.mmbase.util.ChainedIterator.java
/**
* Like org.apache.commons.collections.iterators.IteratorChain, to avoid the dependency....
*
* It is quite easy to understand what this actually is. It is an Iterator implemetnation which is
* based on other Iterators. During iterating, it simply iterates them all sequentially.
*
From source file Main.java
class DateIterator implements Iterator<Date>, Iterable<Date> { private Calendar end = Calendar.getInstance(); private Calendar current = Calendar.getInstance(); public DateIterator(Date start, Date end) {