Iterator by Javaを実装