Package com.globalmentor.model
Class SequentialdISupplier
- java.lang.Object
-
- com.globalmentor.model.SequentialdISupplier
-
- All Implemented Interfaces:
java.util.function.Supplier<java.lang.String>
public class SequentialdISupplier extends java.lang.Object implements java.util.function.Supplier<java.lang.String>
Supplies sequential string identifiers viaget()
, each guaranteed to be sequentially unique. The identifiers begin with some prefix and end with a sequential number.This implementation makes no allowance for sequential values past the maximum unsigned value stored in a
long
.This class is thread safe.
- Author:
- Garret Wilson
-
-
Constructor Summary
Constructors Constructor Description SequentialdISupplier()
Constructor with no prefix.SequentialdISupplier(java.lang.String prefix)
Prefix constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
get()
-