hep.ilc.marlin.adapter.lcio
Class LCCollectionImplementation

java.lang.Object
  extended by hep.ilc.marlin.adapter.lcio.LCCollectionImplementation
All Implemented Interfaces:
hep.lcio.event.LCCollection, Iterable, Collection, List

public class LCCollectionImplementation
extends Object
implements hep.lcio.event.LCCollection


Field Summary
 
Fields inherited from interface hep.lcio.event.LCCollection
BITDefault, BITSubset, BITTransient
 
Constructor Summary
LCCollectionImplementation(LCCollection c)
           
 
Method Summary
 void add(int index, Object element)
           
 boolean add(Object o)
           
 boolean addAll(Collection c)
           
 boolean addAll(int index, Collection c)
           
 void addElement(hep.lcio.event.LCObject obj)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection c)
           
 Object get(int index)
           
 hep.lcio.event.LCObject getElementAt(int index)
           
 int getFlag()
           
 int getNumberOfElements()
           
 hep.lcio.event.LCParameters getParameters()
           
 String getTypeName()
           
 int indexOf(Object o)
           
 boolean isDefault()
           
 boolean isEmpty()
           
 boolean isSubset()
           
 boolean isTransient()
           
 Iterator iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int index)
           
 Object remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection c)
           
 void removeElementAt(int i)
           
 boolean retainAll(Collection c)
           
 Object set(int index, Object element)
           
 void setFlag(int flag)
           
 int size()
           
 List subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

LCCollectionImplementation

public LCCollectionImplementation(LCCollection c)
Method Detail

addElement

public void addElement(hep.lcio.event.LCObject obj)
                throws hep.lcio.exceptions.ReadOnlyException
Specified by:
addElement in interface hep.lcio.event.LCCollection
Throws:
hep.lcio.exceptions.ReadOnlyException

getElementAt

public hep.lcio.event.LCObject getElementAt(int index)
Specified by:
getElementAt in interface hep.lcio.event.LCCollection

getFlag

public int getFlag()
Specified by:
getFlag in interface hep.lcio.event.LCCollection

getNumberOfElements

public int getNumberOfElements()
Specified by:
getNumberOfElements in interface hep.lcio.event.LCCollection

getParameters

public hep.lcio.event.LCParameters getParameters()
Specified by:
getParameters in interface hep.lcio.event.LCCollection

getTypeName

public String getTypeName()
Specified by:
getTypeName in interface hep.lcio.event.LCCollection

isDefault

public boolean isDefault()
Specified by:
isDefault in interface hep.lcio.event.LCCollection

isSubset

public boolean isSubset()
Specified by:
isSubset in interface hep.lcio.event.LCCollection

isTransient

public boolean isTransient()
Specified by:
isTransient in interface hep.lcio.event.LCCollection

removeElementAt

public void removeElementAt(int i)
                     throws hep.lcio.exceptions.ReadOnlyException
Specified by:
removeElementAt in interface hep.lcio.event.LCCollection
Throws:
hep.lcio.exceptions.ReadOnlyException

setFlag

public void setFlag(int flag)
Specified by:
setFlag in interface hep.lcio.event.LCCollection

add

public boolean add(Object o)
Specified by:
add in interface Collection
Specified by:
add in interface List

add

public void add(int index,
                Object element)
Specified by:
add in interface List

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Collection
Specified by:
addAll in interface List

addAll

public boolean addAll(int index,
                      Collection c)
Specified by:
addAll in interface List

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface List

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection
Specified by:
contains in interface List

containsAll

public boolean containsAll(Collection c)
Specified by:
containsAll in interface Collection
Specified by:
containsAll in interface List

get

public Object get(int index)
Specified by:
get in interface List

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection
Specified by:
isEmpty in interface List

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in interface List

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator(int index)
Specified by:
listIterator in interface List

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection
Specified by:
remove in interface List

remove

public Object remove(int index)
Specified by:
remove in interface List

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface Collection
Specified by:
removeAll in interface List

retainAll

public boolean retainAll(Collection c)
Specified by:
retainAll in interface Collection
Specified by:
retainAll in interface List

set

public Object set(int index,
                  Object element)
Specified by:
set in interface List

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface List

subList

public List subList(int fromIndex,
                    int toIndex)
Specified by:
subList in interface List

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection
Specified by:
toArray in interface List

toArray

public Object[] toArray(Object[] a)
Specified by:
toArray in interface Collection
Specified by:
toArray in interface List


Copyright © 2000-2007 FreeHEP. All Rights Reserved.