public class DetectorElementContainer extends ArrayList<IDetectorElement> implements IDetectorElementContainer
IDetectorElementContainer
.modCount
Constructor and Description |
---|
DetectorElementContainer() |
Modifier and Type | Method and Description |
---|---|
IDetectorElementContainer |
find(Class<? extends IDetectorElement> klass)
Find an
IDetectorElement by class. |
IDetectorElementContainer |
find(IIdentifier id)
Find an
IDetectorElement by IIdentifier . |
IDetectorElementContainer |
find(String name)
Find an
IDetectorElement by name. |
String |
toString()
Current implementation does not allow duplicate name, id, or object.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll
public IDetectorElementContainer find(String name)
IDetectorElementContainer
IDetectorElement
by name.find
in interface IDetectorElementContainer
name
- The name of the DetectorElement.null
if none exists.public IDetectorElementContainer find(IIdentifier id)
IDetectorElementContainer
IDetectorElement
by IIdentifier
.find
in interface IDetectorElementContainer
id
- The id of the DetectorElement.null
if none exists.public IDetectorElementContainer find(Class<? extends IDetectorElement> klass)
IDetectorElementContainer
IDetectorElement
by class.find
in interface IDetectorElementContainer
klass
- The class.List
of DetectorElement
objects with matching class.public String toString()
toString
in class AbstractCollection<IDetectorElement>
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.