annotate src/treecms/tree/id/AbstractRandomNodeID.java @ 6:12604eb6b615

added javadoc
author shoshi
date Mon, 14 Mar 2011 23:24:38 +0900
parents
children 084de6909451
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
1 package treecms.tree.id;
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
2
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
3 import treecms.api.NodeID;
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
4
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
5 public abstract class AbstractRandomNodeID extends AbstractNodeID
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
6 {
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
7 public abstract NodeID create();
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
8 public abstract String getUUID();
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
9 public abstract String getVersion();
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
10 public abstract NodeID update();
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
11
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
12 public boolean isFamily(NodeID _id)
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
13 {
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
14 return (_id instanceof AbstractNodeID) ? getUUID().equals(_id.getUUID()) : false;
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
15 }
12604eb6b615 added javadoc
shoshi
parents:
diff changeset
16 }