org.opensha.sra.asset
Class Portfolio
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Asset>
org.opensha.sra.asset.Portfolio
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Asset>, Collection<Asset>, List<Asset>, RandomAccess, Named
public class Portfolio
- extends ArrayList<Asset>
- implements Named
A Portfolio represents a collecion of Assets.
- Version:
- $Id: Portfolio.java 7863 2011-05-23 20:41:47Z kmilner $
- Author:
- Peter Powers
- See Also:
- Serialized Form
|
Constructor Summary |
Portfolio(String name)
Creates a new Portfolio with the given name. |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Portfolio
public Portfolio(String name)
- Creates a new
Portfolio with the given name.
- Parameters:
name - the name of the Portfolio
getName
public String getName()
- Description copied from interface:
Named
- Returns the name of this object
- Specified by:
getName in interface Named