Example usage for org.apache.commons.collections15.list LazyList decorate

List of usage examples for org.apache.commons.collections15.list LazyList decorate

Introduction

In this page you can find the example usage for org.apache.commons.collections15.list LazyList decorate.

Prototype

public static <E> List<E> decorate(List<E> list, Factory<? extends E> factory) 

Source Link

Document

Factory method to create a lazily instantiating list.

Usage

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());
}