IntegerList

package com.abc.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xxx.
 */
public class IntegerList {
    private List list = new ArrayList();

    public void add(Object obj) {
        list.add(obj);
    }

    public Object get(int index) {
        return list.get(index);
    }

    public boolean del(int index) {
        if (index < list.size()) {
            list.remove(index);
            return true;
        }

        return false;
    }

    public void clear() {
        this.list.clear();
    }

    public List list() {
        return list;
    }

    public int count() {
        return list.size();
    }
}

 

posted @ 2020-11-17 11:23  都是城市惹的祸  阅读(81)  评论(0)    收藏  举报