/** * 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; }