Package iterables

Source Code of iterables.Urn

package iterables;

import iterators.UrnIterator;

import java.util.Iterator;

/**
*
* @author luongnv89
* @version 1
*
*          Wraps an array of MyTableOfStringsReverseIteration data in an {@link Iterable} class, where we
*          iterate through the elements in order<br>
*
*/
public class Urn implements Iterable<String> {

  public MyTableOfStringsReverseIteration[] data;

  public Urn(MyTableOfStringsReverseIteration[] data) {
    this.data = data;
  }

  public int length() {
    return data.length;
  }

  public Iterator<String> iterator() {
    return new UrnIterator(this);
  }

}
TOP

Related Classes of iterables.Urn

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.