Mercurial > hg > Members > shoshi > jungle > jungle-core
changeset 63:09b780f54555
Add extends Iterable<TreeOperation> on ChangeListReader
author | one |
---|---|
date | Fri, 20 Dec 2013 20:25:33 +0900 |
parents | 85c9a215c4eb |
children | a0ed2804b045 |
files | src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/App.java src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/ChangeListReader.java src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/DefaultChangeListReader.java src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/NullJournal.java |
diffstat | 4 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/App.java Tue Nov 26 16:37:14 2013 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/App.java Fri Dec 20 20:25:33 2013 +0900 @@ -22,7 +22,6 @@ jungle.createNewTree("hoge"); JungleTree tree = jungle.getTreeByName("hoge"); JungleTreeEditor editor = tree.getTreeEditor(); - JungleTreeEditor editor2 = tree.getTreeEditor(); DefaultNodePath path = new DefaultNodePath(); String key = "key";
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/ChangeListReader.java Tue Nov 26 16:37:14 2013 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/ChangeListReader.java Fri Dec 20 20:25:33 2013 +0900 @@ -1,7 +1,8 @@ package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.persistent; -public interface ChangeListReader +public interface ChangeListReader extends Iterable<ChangeList> { public ChangeListReader newReader(); public ChangeList read(); + }
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/DefaultChangeListReader.java Tue Nov 26 16:37:14 2013 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/DefaultChangeListReader.java Fri Dec 20 20:25:33 2013 +0900 @@ -2,6 +2,7 @@ import java.nio.ByteBuffer; import java.nio.channels.FileChannel; +import java.util.Iterator; import java.util.LinkedList; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.TreeOperation; @@ -38,6 +39,11 @@ return null; } + + @Override + public Iterator<ChangeList> iterator() { + return null; + } }
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/NullJournal.java Tue Nov 26 16:37:14 2013 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/NullJournal.java Fri Dec 20 20:25:33 2013 +0900 @@ -1,6 +1,7 @@ package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.persistent; import java.nio.ByteBuffer; +import java.util.Iterator; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.Command; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.NodePath; @@ -75,5 +76,10 @@ { return null; } + + @Override + public Iterator<ChangeList> iterator() { + return null; + } } }