Example usage for org.apache.commons.collections4.list LazyList LazyList

List of usage examples for org.apache.commons.collections4.list LazyList LazyList

Introduction

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

Prototype

protected LazyList(final List<E> list, final Factory<? extends E> factory) 

Source Link

Document

Constructor that wraps (not copies).

Usage

From source file:cz.muni.fi.editor.webapp.forms.factories.UserFormCreateFactory.java

@Override
public UserFormCreate getObject() throws Exception {
    UserFormCreate uf = new UserFormCreate();
    uf.setActive(Boolean.TRUE);// w  w  w. j a  v  a 2  s.  c o  m
    uf.setOrganizations(
            LazyList.lazyList(new ArrayList<>(), FactoryUtils.instantiateFactory(OrganizationForm.class)));

    return uf;
}

From source file:cz.muni.fi.editor.webapp.forms.factories.OrganizationFormFactory.java

@Override
public OrganizationForm getObject() throws Exception {
    OrganizationForm organizationForm = new OrganizationForm();

    organizationForm.setPermissions(/*from  w ww.  j  a  v a2s.  co m*/
            LazyList.lazyList(new ArrayList<>(), FactoryUtils.instantiateFactory(UserPermissionForm.class)));

    return organizationForm;
}

From source file:cz.muni.fi.editor.webapp.forms.factories.UserFormProfileFactory.java

@Override
public UserFormProfile getObject() throws Exception {
    UserFormProfile uf = new UserFormProfile();
    uf.setActive(Boolean.TRUE);/*  w  ww.  j a  va2s. c o  m*/
    uf.setOrganizations(
            LazyList.lazyList(new ArrayList<>(), FactoryUtils.instantiateFactory(OrganizationForm.class)));

    return uf;
}