List of usage examples for org.apache.commons.collections15.list LazyList decorate
public static <E> List<E> decorate(List<E> list, Factory<? extends E> factory)
From source file:gov.nih.nci.cabig.caaers.web.rule.notification.ReportDefinitionCommand.java
@SuppressWarnings("unchecked") public List<PlannedNotification> getEmailNotifications() { List<PlannedNotification> plannedNotifications = rpDef .fetchPlannedNotification(Integer.parseInt(indexToFetch)); return LazyList.decorate(plannedNotifications, new PlannedEmailNotificationFactory(this.rpDef.getPlannedNotifications())); }
From source file:gov.nih.nci.cabig.caaers.web.ae.AbstractExpeditedAdverseEventInputCommand.java
public List<String> getPriorTherapyAgents() { return LazyList.decorate(chemoAgents, FactoryUtils.nullFactory()); }