package jp.com.pollseed.mahout.wrapper.user;

import jp.com.pollseed.mahout.wrapper.common.AbstractAnalyzer;

import org.apache.mahout.cf.taste.model.DataModel;

abstract class AbstractUser extends AbstractAnalyzer {

    protected final UserItemVO dto;

    protected AbstractUser(DataModel dataModel, UserItemVO dto) {
        super(dataModel);
        if (dto == null || dto.userMap == null || dto.userMap.isEmpty()) {
            throw new IllegalArgumentException();
        }
        this.dto = dto;
    }
}
