Java 类org.jooq.lambda.function.Function2 实例源码

项目:RankSys    文件:TransposedPreferenceData.java   
/**
 * Constructor with custom converters between IdxPref and IdPref.
 *
 * @param recommenderData preference data to be transposed
 * @param idPrefFun converter from item IdPref to user IdPref
 * @param idxPrefFun converter from item IdxPref to item IdxPref
 */
public TransposedPreferenceData(FastPreferenceData<U, I> recommenderData,
                                Function2<U, IdPref<I>, IdPref<U>> idPrefFun,
                                Function2<Integer, IdxPref, IdxPref> idxPrefFun) {
    this.d = recommenderData;
    this.idPrefFun = idPrefFun;
    this.idxPrefFun = idxPrefFun;
}