Package org.bson.codecs.pojo
Interface IdGenerator<T>
- Type Parameters:
T
- the type of the id value.
public interface IdGenerator<T>
Classes that implement this interface define a way to create Ids for Pojo's.
- Since:
- 3.10
-
Method Summary
-
Method Details
-
generate
T generate()Generates an id for a Pojo.- Returns:
- the generated id value
-
getType
- Returns:
- the type of the generated id.
-