hep.io.root.core
Class Clones2
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
hep.io.root.core.Clones2
- All Implemented Interfaces:
- Collection, List, RootObject, TClonesArray, TCollection, TObjArray, TObject, TSeqCollection
- public abstract class Clones2
- extends AbstractList
- implements TClonesArray
A Clones2 is used to represent a split TClonesArray.
In Root 3.00 there was a special TBranchClones class to represent this,
in later versions of Root this is just handled like everything else,
by TBranchElement.
- Source Code:
- Clones2.java
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
cloneCache
protected ArrayList cloneCache
hollowIndex
protected long hollowIndex
size
protected int size
Clones2
public Clones2()
setData
public void setData(int size,
long hollowIndex)
getElementAt
public Object getElementAt(int index)
- Specified by:
getElementAt
in interface TCollection
getLast
public int getLast()
- Specified by:
getLast
in interface TCollection
getLowerBound
public int getLowerBound()
- Specified by:
getLowerBound
in interface TObjArray
getRootClass
public RootClass getRootClass()
- Description copied from interface:
RootObject
- Get the class of this object
- Specified by:
getRootClass
in interface RootObject
- Returns:
- The RootClass for this object
getUpperBound
public int getUpperBound()
- Specified by:
getUpperBound
in interface TObjArray
get
public Object get(int index)
- Specified by:
get
in interface List
size
public int size()
- Specified by:
size
in interface List
clearCache
protected abstract void clearCache()
createClone
protected abstract Clone2 createClone()
Copyright © 2000-2004 FreeHEP, All Rights Reserved.