Code example for LinkedList

0
/** 
 * @author <a href="ropalka@redhat.com">Richard Opalka</a> 
 */ 
abstract class AbstractDeployment { 
 
    private final List<EJBEndpoint> ejbEndpoints = new LinkedList<EJBEndpoint>();
    private final List<EJBEndpoint> unmodifiableEjbEndpoints = Collections.unmodifiableList(ejbEndpoints);
    private final List<POJOEndpoint> pojoEndpoints = new LinkedList<POJOEndpoint>();
    private final List<POJOEndpoint> unmodifiablePojoEndpoints = Collections.unmodifiableList(pojoEndpoints);
    private final Map<String, String> urlPatternToClassMapping = new HashMap<String, String>();
 
    public List<EJBEndpoint> getEjbEndpoints() {
        return unmodifiableEjbEndpoints;
    } 
 
    public List<POJOEndpoint> getPojoEndpoints() {
        return unmodifiablePojoEndpoints;
    } 
 
    public void addEndpoint(final EJBEndpoint ep) {