com.partnersoft.data
Class NamedLists<T>
java.lang.Object
com.partnersoft.data.Naming<java.util.List<T>>
com.partnersoft.data.NamedLists<T>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.util.List<T>>
public class NamedLists<T>
- extends Naming<java.util.List<T>>
A Naming that keeps track of lists of things - it autocreates ArrayLists for entries when you use the addToList(name, value) method.
Copyright 2008 Partner Software, Inc.
- Version:
- $Id$
- Author:
- Paul Reavis
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
|
Method Summary |
void |
addToList(java.lang.String name,
T value)
Adds the given entry to the named list; creates the list if it doesn't exist. |
NamedLists<T> |
copy()
Returns a shallow copy of the Naming. |
| Methods inherited from class com.partnersoft.data.Naming |
clear, clone, containsKey, containsValue, createUniqueNameWithPrefix, entrySet, equals, get, getNameAt, getSize, getValue, getValueAt, hashCode, isEmpty, keySet, put, putAll, remove, removeValue, setOrderPreserving, setValue, size, sort, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
NamedLists
public NamedLists()
addToList
public void addToList(java.lang.String name,
T value)
- Adds the given entry to the named list; creates the list if it doesn't exist. Don't confuse this with put()!
copy
public NamedLists<T> copy()
- Description copied from class:
Naming
- Returns a shallow copy of the Naming.
- Overrides:
copy in class Naming<java.util.List<T>>