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

com.jparams.store.index.KeyMapper Maven / Gradle / Ivy

There is a newer version: 3.1.4
Show newest version
package com.jparams.store.index;

/**
 * Map a value to a single indexed key
 *
 * @param  key type
 * @param  value type
 */
@FunctionalInterface
public interface KeyMapper
{
    /**
     * Index value to key or return null to skip indexing
     *
     * @param value value to transform into a key
     * @return key
     */
    K map(V value);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy