Iterator.java :  » UnTagged » my-time-tracker » com » myTimeUtils » android » TimeTracker » Global » Android Open Source

Android Open Source » UnTagged » my time tracker 
my time tracker » com » myTimeUtils » android » TimeTracker » Global » Iterator.java
package com.myTimeUtils.android.TimeTracker.Global;
/**
 * Defines the interface of the objects that will act as an iterator through
 * a list
 *
 * @author Joseph Walker
 */
public interface Iterator<E>{
  /**
   * Restarts the iterator.
   */
  public void clear();
  /**
   * Returns the current element in the iterator.
   *
   * @return     The current element in the iterator
   */
  public E current();
  /**
   * Determines if the iterator is at its end.
   *
   * @return    True if the iterator has more elements.
   */
  public boolean hasNext();
  /**
   * Advances the iterator to the next element.
   */
  public void next();
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.