com.frameworkset.platform.config.ResourceInfoQueue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pdp-system Show documentation
Show all versions of pdp-system Show documentation
bboss public development platform base on bboss.
package com.frameworkset.platform.config;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import com.frameworkset.platform.config.model.ResourceInfo;
/**
* Title: ResourceQueue
*
* Description: 存储定义资源信息接口队列
*
* Copyright: Copyright (c) 2006
*
* Company: bbossgroups
*
* @author biaoping.yin
* @version 1.0
*/
public class ResourceInfoQueue implements java.io.Serializable {
private List list = new LinkedList();
public static void main(String[] args) {
ResourceInfoQueue resourcequeue = new ResourceInfoQueue();
}
public void addResourceInfo(ResourceInfo resourceInfo)
{
this.list.add(resourceInfo);
}
public ResourceInfo removeResourceInfo(ResourceInfo resourceInfo)
{
this.list.remove(resourceInfo);
return resourceInfo;
}
public ResourceInfo getResourceInfo(int i)
{
return (ResourceInfo)list.get(i);
}
public List getList()
{
return Collections.unmodifiableList(this.list);
}
public int size()
{
return this.list.size();
}
}