public UspstfSpecificRecommendation getSpecificUspstfSpecificRecommendation(int index) { init(); if (index < 0) { index = 0; } if (index > (data.size() - 1)) { index = data.size() - 1; } UspstfSpecificRecommendation obj = data.get(index); Long id = obj.getId_(); return uspstfSpecificRecommendationService.findUspstfSpecificRecommendation(id); }
public UspstfSpecificRecommendation getRandomUspstfSpecificRecommendation() { init(); UspstfSpecificRecommendation obj = data.get(rnd.nextInt(data.size())); Long id = obj.getId_(); return uspstfSpecificRecommendationService.findUspstfSpecificRecommendation(id); }