All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.bild.codec.IdGenerator Maven / Gradle / Ivy

Go to download

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