|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.id.IncrementFactory
public class IncrementFactory
The factory that created ExceptionId
s that provides a number that is larger than zero. If the last number has been provided, it continues with 1, issuing a message on info level.
Constructor Summary | |
---|---|
IncrementFactory() Default constructor with counter initialized with 1 . |
|
IncrementFactory(long startValue) Convenience constructor. |
Method Summary | |
---|---|
LongExceptionId |
createId() Creates the identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IncrementFactory()
1
.
public IncrementFactory(long startValue) throws IllegalArgumentException
startValue
- the start value of the counter.
IllegalArgumentException
- if the start value is smaller than or equal to zero.
Method Detail |
---|
public LongExceptionId createId()
IdFactory
createId
in interface
IdFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |