private MainState(int headDir) {
this.headDir = headDir;
}
+
+ public boolean isInitial() {
+ return this.headDir == 0;
+ }
public static MainState load(Path directory, Runnable rollbackCallback) throws IOException {
Files.createDirectories(directory);