Class PredictableUUIDSource
- java.lang.Object
-
- org.eclipse.rdf4j.spring.uuidsource.predictable.PredictableUUIDSource
-
- All Implemented Interfaces:
UUIDSource
public class PredictableUUIDSource extends Object implements UUIDSource
UUID source that generates the same sequence of UUIDs by counting up along
counter and using that as the value for generating a UUID. Useful for unit tests as newly generated entities will receive the same UUIDs each time the tests are executed.- Since:
- 4.0.0
- Author:
- Florian Kleedorfer
-
-
Constructor Summary
Constructors Constructor Description PredictableUUIDSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRI
nextUUID()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.spring.support.UUIDSource
toURNUUID
-
-
-
-
Method Detail
-
nextUUID
public IRI nextUUID()
- Specified by:
nextUUID
in interfaceUUIDSource
-
-