EAArrayList.java :  » JSON » am-code-generator » org » alamoraes » eaintegration » Java Open Source

Java Open Source » JSON » am code generator 
am code generator » org » alamoraes » eaintegration » EAArrayList.java
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.alamoraes.eaintegration;

import java.util.ArrayList;

/**
 * Fora que todos os itens adicionados  lista tenha seus mtodos extract acionados.
 * @author Andr
 */
public class EAArrayList<T extends EAObject> extends ArrayList<T> {

    @Override
    public void add(int index, T element) {
        super.add(index, element);
        element.extract();
    }

    @Override
    public boolean add(T e) {
        boolean ret = super.add(e);
        e.extract();
        return ret;
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.