Commit 2f059492 authored by Andrew Wright's avatar Andrew Wright Committed by andrew

documentation

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3181 b35dd754-fafc-0310-a699-88a17e54d16e
parent 36dd1311
......@@ -85,7 +85,8 @@ public class SequenceManager {
}
/**
* Method for objects that have defined the annotation {@link JiveID} in their class.
* Returns the next id for an object that has defined the annotation {@link JiveID}.
* The JiveID annotation value is the synonymous for the type integer.
*
* The annotation JiveID should contain the id type for the object (the same number you would
* use to call nextID(int type))
......@@ -101,6 +102,7 @@ public class SequenceManager {
*
* @param o object that has annotation JiveID
* @return the next int
* @throws IllegalArgumentException If the object passed in does not defined {@link JiveID}
*/
public static long nextID(Object o) {
JiveID id = o.getClass().getAnnotation(JiveID.class);
......@@ -119,7 +121,7 @@ public class SequenceManager {
* for the type we will verify the type is valid and then create a new sequence manager for it.
*
* @param type the type of unique id
* @param blockSize how many blocks of ids we should
* @param blockSize how many blocks of ids we should
*/
public static void setBlockSize(int type, int blockSize) {
if (managers.containsKey(type)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment