FreeHEP API
Version current

hep.io.root.core
Class Clones2

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byhep.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

Field Summary
protected  ArrayList cloneCache
           
protected  long hollowIndex
           
protected  int size
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface hep.io.root.interfaces.TCollection
rootIOVersion
 
Constructor Summary
Clones2()
           
 
Method Summary
protected abstract  void clearCache()
           
protected abstract  Clone2 createClone()
           
 Object get(int index)
           
 Object getElementAt(int index)
           
 int getLast()
           
 int getLowerBound()
           
 RootClass getRootClass()
          Get the class of this object
 int getUpperBound()
           
 void setData(int size, long hollowIndex)
           
 int size()
           
 
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 class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hep.io.root.interfaces.TCollection
getName, getSize
 
Methods inherited from interface hep.io.root.interfaces.TObject
getBits, getUniqueID
 
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
 

Field Detail

cloneCache

protected ArrayList cloneCache

hollowIndex

protected long hollowIndex

size

protected int size
Constructor Detail

Clones2

public Clones2()
Method Detail

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()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.