public class ILCCollection extends ArrayList implements LCCollection
BITDefault, BITSubset, BITTransient| Constructor and Description |
|---|
ILCCollection(String type) |
ILCCollection(String type,
int flag,
int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(LCObject object) |
void |
addElement(LCObject obj)
Adds the given element to (end of) the collection.
|
LCObject |
getElementAt(int index)
Returns pointer to element at index - no range check, use getNumberOfEntries().
|
int |
getFlag()
Returns flag word for collection.
|
int |
getNumberOfElements()
Returns the number of elements in the collection.
|
LCParameters |
getParameters()
Parameters defined for this collection.
|
String |
getTypeName()
Returns the type name of the collection - valid names are defined in LCIO.
|
boolean |
isDefault()
True if collection is the default collection for the given type.
|
boolean |
isSubset()
True if the collection holds a subset of objects from other collections.
|
boolean |
isTransient()
True if collection is transient, i.e.
|
void |
removeElementAt(int i)
Removes the i-th element from the collection.
|
void |
setDefault() |
void |
setDefault(boolean val) |
void |
setFlag(int flag)
Set the flag word.
|
void |
setParameters(LCParameters p) |
void |
setSubset() |
void |
setSubset(boolean val) |
void |
setTransient() |
void |
setTransient(boolean val) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic ILCCollection(String type)
public ILCCollection(String type, int flag, int size)
public LCObject getElementAt(int index)
LCCollectiongetElementAt in interface LCCollectionpublic void setFlag(int flag)
LCCollectionsetFlag in interface LCCollectionpublic int getFlag()
LCCollectiongetFlag in interface LCCollectionLCCollection.isTransient()public int getNumberOfElements()
LCCollectiongetNumberOfElements in interface LCCollectionpublic String getTypeName()
LCCollectiongetTypeName in interface LCCollectionpublic void add(LCObject object)
public void addElement(LCObject obj) throws ReadOnlyException
LCCollectionaddElement in interface LCCollectionReadOnlyExceptionpublic void removeElementAt(int i)
throws ReadOnlyException
LCCollectionremoveElementAt in interface LCCollectionReadOnlyExceptionpublic LCParameters getParameters()
LCCollectiongetParameters in interface LCCollectionpublic void setParameters(LCParameters p)
public boolean isTransient()
LCCollectionisTransient in interface LCCollectionpublic void setTransient()
public void setTransient(boolean val)
public boolean isDefault()
LCCollectionisDefault in interface LCCollectionpublic void setDefault()
public void setDefault(boolean val)
public boolean isSubset()
LCCollectionisSubset in interface LCCollectionpublic void setSubset()
public void setSubset(boolean val)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics