summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/models/PathModel.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-07-01 21:17:28 -0400
committerJames Moger <james.moger@gitblit.com>2011-07-01 21:17:28 -0400
commitd9f68798555e5ba8b4f7ddecf4a8cabbe9bb161a (patch)
treef9b2b5751b908ae341836cdd7052c0a44147e80c /src/com/gitblit/models/PathModel.java
parent892570d96cdfaf4779c1e92c89d76dabf78be361 (diff)
downloadgitblit-d9f68798555e5ba8b4f7ddecf4a8cabbe9bb161a.tar.gz
gitblit-d9f68798555e5ba8b4f7ddecf4a8cabbe9bb161a.zip
Documentation. Added JavaDoc comments.
Diffstat (limited to 'src/com/gitblit/models/PathModel.java')
-rw-r--r--src/com/gitblit/models/PathModel.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/gitblit/models/PathModel.java b/src/com/gitblit/models/PathModel.java
index 08415317..c78b300c 100644
--- a/src/com/gitblit/models/PathModel.java
+++ b/src/com/gitblit/models/PathModel.java
@@ -20,6 +20,13 @@ import java.io.Serializable;
import org.eclipse.jgit.diff.DiffEntry.ChangeType;
import org.eclipse.jgit.lib.FileMode;
+/**
+ * PathModel is a serializable model class that represents a file or a folder,
+ * including all its metadata and associated commit id.
+ *
+ * @author James Moger
+ *
+ */
public class PathModel implements Serializable, Comparable<PathModel> {
private static final long serialVersionUID = 1L;
@@ -71,6 +78,13 @@ public class PathModel implements Serializable, Comparable<PathModel> {
return 1;
}
+ /**
+ * PathChangeModel is a serializable class that represents a file changed in
+ * a commit.
+ *
+ * @author James Moger
+ *
+ */
public static class PathChangeModel extends PathModel {
private static final long serialVersionUID = 1L;