io.hawt.git.FileContents Maven / Gradle / Ivy
package io.hawt.git;
import java.util.List;
/**
* Represents the text of a text file or a directory
*/
public class FileContents {
private boolean directory;
private List children;
private String text;
public FileContents(boolean directory, String text, List children) {
this.directory = directory;
this.text = text;
this.children = children;
}
public List getChildren() {
return children;
}
public String getText() {
return text;
}
public boolean isDirectory() {
return directory;
}
}