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, trimToSize
equals, hashCode
containsAll, toString
add, 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, toArray
parallelStream, removeIf, stream
public ILCCollection(String type)
public ILCCollection(String type, int flag, int size)
public LCObject getElementAt(int index)
LCCollection
getElementAt
in interface LCCollection
public void setFlag(int flag)
LCCollection
setFlag
in interface LCCollection
public int getFlag()
LCCollection
getFlag
in interface LCCollection
LCCollection.isTransient()
public int getNumberOfElements()
LCCollection
getNumberOfElements
in interface LCCollection
public String getTypeName()
LCCollection
getTypeName
in interface LCCollection
public void add(LCObject object)
public void addElement(LCObject obj) throws ReadOnlyException
LCCollection
addElement
in interface LCCollection
ReadOnlyException
public void removeElementAt(int i) throws ReadOnlyException
LCCollection
removeElementAt
in interface LCCollection
ReadOnlyException
public LCParameters getParameters()
LCCollection
getParameters
in interface LCCollection
public void setParameters(LCParameters p)
public boolean isTransient()
LCCollection
isTransient
in interface LCCollection
public void setTransient()
public void setTransient(boolean val)
public boolean isDefault()
LCCollection
isDefault
in interface LCCollection
public void setDefault()
public void setDefault(boolean val)
public boolean isSubset()
LCCollection
isSubset
in interface LCCollection
public void setSubset()
public void setSubset(boolean val)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics