|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<java.lang.Object,Drive>
clarion.system.DriveCollection
public class DriveCollection
This class implements a drive collection within CLARION. It extends the LinkedHashMap class.
Usage:
This class acts as a container to hold drives.
Known Subclasses:
Field Summary | |
---|---|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
DriveCollection()
Initializes a drive collection with a default initial capacity and load factor. |
|
DriveCollection(java.util.Collection<? extends Drive> drives)
Initializes the drive collection with the collection of drives specified. |
|
DriveCollection(java.util.Map<? extends java.lang.Object,? extends Drive> map)
Initializes the drive collection with the map of drives. |
Method Summary | |
---|---|
DriveStrengthCollection |
getDriveStrengths()
Gets the drive strength objects associated with the drives in this drive collection. |
Drive |
put(java.lang.Object key,
Drive drive)
Puts a drive in the drive collection. |
void |
putAll(java.util.Map<? extends java.lang.Object,? extends Drive> drives)
Puts a collection of drives in the drive collection. |
int |
size()
Returns the number of drives in the drive collection. |
Methods inherited from class java.util.LinkedHashMap |
---|
clear, containsValue, get, removeEldestEntry |
Methods inherited from class java.util.HashMap |
---|
clone, containsKey, entrySet, isEmpty, keySet, remove, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, remove, values |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public DriveCollection()
public DriveCollection(java.util.Collection<? extends Drive> drives)
drives
- The drives for the collection.public DriveCollection(java.util.Map<? extends java.lang.Object,? extends Drive> map)
map
- The map of drives for the drive collection.Method Detail |
---|
public DriveStrengthCollection getDriveStrengths()
public Drive put(java.lang.Object key, Drive drive) throws java.lang.IllegalArgumentException
put
in interface java.util.Map<java.lang.Object,Drive>
put
in class java.util.HashMap<java.lang.Object,Drive>
drive
- The drive to add.
java.lang.IllegalArgumentException
- If the drive is already in the drive collection.public void putAll(java.util.Map<? extends java.lang.Object,? extends Drive> drives)
putAll
in interface java.util.Map<java.lang.Object,Drive>
putAll
in class java.util.HashMap<java.lang.Object,Drive>
drives
- The drives to add.public int size()
size
in interface java.util.Map<java.lang.Object,Drive>
size
in class java.util.HashMap<java.lang.Object,Drive>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |