Mercurial > hg > Members > shoshi > TreeCMSv2
diff src/treecms/tree/id/AbstractRandomNodeID.java @ 6:12604eb6b615
added javadoc
author | shoshi |
---|---|
date | Mon, 14 Mar 2011 23:24:38 +0900 |
parents | |
children | 084de6909451 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/treecms/tree/id/AbstractRandomNodeID.java Mon Mar 14 23:24:38 2011 +0900 @@ -0,0 +1,16 @@ +package treecms.tree.id; + +import treecms.api.NodeID; + +public abstract class AbstractRandomNodeID extends AbstractNodeID +{ + public abstract NodeID create(); + public abstract String getUUID(); + public abstract String getVersion(); + public abstract NodeID update(); + + public boolean isFamily(NodeID _id) + { + return (_id instanceof AbstractNodeID) ? getUUID().equals(_id.getUUID()) : false; + } +}