public class DetectorElementStore extends DetectorElementContainer implements IDetectorElementStore
IDetectorElement
objects and can be accessed as a singleton.Modifier and Type | Field and Description |
---|---|
(package private) DetectorElementIdentifierHash |
cache |
private static DetectorElementStore |
store |
modCount
Constructor and Description |
---|
DetectorElementStore() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(IDetectorElement de) |
void |
clear() |
IDetectorElementContainer |
find(IIdentifier id)
Find an
IDetectorElement by IIdentifier . |
static IDetectorElementStore |
getInstance() |
find, find, toString
add, addAll, addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
find, find
private static DetectorElementStore store
DetectorElementIdentifierHash cache
public static IDetectorElementStore getInstance()
public boolean add(IDetectorElement de)
add
in interface Collection<IDetectorElement>
add
in interface List<IDetectorElement>
add
in class ArrayList<IDetectorElement>
public IDetectorElementContainer find(IIdentifier id)
IDetectorElementContainer
IDetectorElement
by IIdentifier
.find
in interface IDetectorElementContainer
find
in class DetectorElementContainer
id
- The id of the DetectorElement.null
if none exists.public void clear()
clear
in interface Collection<IDetectorElement>
clear
in interface List<IDetectorElement>
clear
in class ArrayList<IDetectorElement>
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.