All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nohope.spring.app.AbstractDependencyProvider Maven / Gradle / Ivy

The newest version!
package org.nohope.spring.app;

import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * @author ketoth xupack
 * @since 11/22/12 6:47 PM
 */
public class AbstractDependencyProvider
        extends AbstractList
        implements IDependencyProvider {

    private final List modules = new ArrayList<>();

    void setModules(final Collection modules) {
        this.modules.clear();
        this.modules.addAll(modules);
    }

    @Override
    public T get(final int index) {
        return modules.get(index);
    }

    @Override
    public int size() {
        return modules.size();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy