Design-Patterns/simple/iterator/src/org/tektutor/ConcreteAggregate.java
package org.tektutor;

public class ConcreteAggregate implements Aggregate {
	private final int list[];

	  ConcreteAggregate(int list[]) {
	    this.list = list;
	  }
	  
	  @Override
	  public Iterator createIterator() {
	    return new ConcreteIterator(this);
	  }
	  
	  public int size() {
	    return list.length;
	  }
	  
	  public int at(int index) {
	    return list[index];
	  }
}
