
de.bild.codec.IdGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polymorphia Show documentation
Show all versions of polymorphia Show documentation
A very fast POJO codec for MongoDB (used in conjunction with the Mongo Java Driver) that handles generic types as well as polymorphic class hierarchies
The newest version!
package de.bild.codec;
/**
* IdGenerator that has no need to generate ids based on instance internals
*/
public interface IdGenerator extends InstanceAwareIdGenerator {
@Override
default T generate(Object instance) {
return generate();
}
/**
* Generate id without knowledge of the instance
* @return a new id
*/
T generate();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy