Class PredictableUUIDSource
java.lang.Object
org.eclipse.rdf4j.spring.uuidsource.predictable.PredictableUUIDSource
- All Implemented Interfaces:
UUIDSource
UUID source that generates the same sequence of UUIDs by counting up a
long
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 Details
-
PredictableUUIDSource
public PredictableUUIDSource()
-
-
Method Details
-
nextUUID
- Specified by:
nextUUID
in interfaceUUIDSource
-