Skip to content

Instantly share code, notes, and snippets.

@boldijar
Created May 28, 2016 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boldijar/7f5ea311f44b37bada04cb53b34d9ac6 to your computer and use it in GitHub Desktop.
Save boldijar/7f5ea311f44b37bada04cb53b34d9ac6 to your computer and use it in GitHub Desktop.
package com.bolnizar.sda;
/**
* Created by Paul on 5/28/2016.
*/
public class Iterator {
private Dictionary mDictionary;
public Iterator(Dictionary dictionary) {
mDictionary = dictionary;
}
/* returns the first element from the iterator*/
public Place first() {
return null;
}
/* returns true if the iterator has a valid current element */
public boolean valid() {
return false;
}
/* moves the iterator one step */
public void next() {
}
/* returns the current element from the iterator */
public Place current() {
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment