org.openmobileis.common.util.collection.Array Class Reference

Inheritance diagram for org.openmobileis.common.util.collection.Array:

org.openmobileis.common.util.collection.FilterCollection org.openmobileis.common.util.OpenMISSerializable List of all members.

Detailed Description

Use to store an Array of objects.

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.

Definition at line 40 of file Array.java.

Public Member Functions

 Array (Object[] array)
 Array (int initialCapacity)
 Constructs an empty ArrayList with the specified initial capacity.
 Array ()
 Constructs an empty ArrayList.Initial capacity is 10.
void clear ()
void ensureCapacity (int minCapacity)
 Increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
int size ()
 Returns the number of elements in this ArrayList.
void setSize (int size)
 set the size of the array.
boolean isEmpty ()
 Tests if this ArrayList has no elements.
Object[] toArray ()
 Returns an array containing all of the elements in this ArrayList in the correct order.
Object[] toArray (Object a[])
 Returns an array containing all of the elements in this ArrayList in the correct order.
Object get (int index)
 Returns the element at the specified position in this ArrayList.
boolean add (Object o)
 Appends the specified element to the end of this ArrayList.
boolean replace (int index, Object o)
 replace at the specified index the element.
boolean add (int index, Object o)
 Appends the specified element to the end of this ArrayList.
Object getLastAdded ()
 return the last added object in the array.
boolean contains (Object o)
 return true if the array contains the specified object false otherwise.
int indexOf (Object o)
 Searches for the first occurence of the given argument, testing for equality using the equals method.
boolean addArray (Array a)
 Appends the specified ArrayList to the end of this ArrayList.
Object remove (int index)
 Removes the element at the specified position in this ArrayList.
Object remove (Object element)
 Removes the element in this ArrayList.
void removeAll ()
Object clone ()
boolean equals (Object obj)

Static Public Member Functions

static void main (String[] args)

Protected Member Functions

Object[] getArrayElements ()
void setArrayElements (Object[] array)

Protected Attributes

Object elementData []
 The array buffer into which the elements of the ArrayList are stored.
int size
 The size of the ArrayList (the number of elements it contains).

Static Protected Attributes

static final long serialVersionUID = 5521257935120563452L


Constructor & Destructor Documentation

org.openmobileis.common.util.collection.Array.Array ( int  initialCapacity  ) 

Constructs an empty ArrayList with the specified initial capacity.

Parameters:
initialCapacity the initial capacity of the ArrayList.
Exceptions:
IllegalArgumentException if the specified initial capacity is negative

Definition at line 74 of file Array.java.


Member Function Documentation

void org.openmobileis.common.util.collection.Array.ensureCapacity ( int  minCapacity  ) 

Increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.

Parameters:
minCapacity the desired minimum capacity.

Definition at line 109 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, and org.openmobileis.common.util.collection.Array.size().

Referenced by org.openmobileis.common.util.collection.Array.add().

int org.openmobileis.common.util.collection.Array.size (  ) 

Returns the number of elements in this ArrayList.

Returns:
the number of elements in this ArrayList.

Definition at line 126 of file Array.java.

Referenced by org.openmobileis.common.util.collection.Array.add(), org.openmobileis.common.util.collection.Array.addArray(), org.openmobileis.common.util.collection.Array.Array(), org.openmobileis.common.util.collection.Array.clear(), org.openmobileis.common.util.collection.Array.contains(), org.openmobileis.common.util.collection.Array.ensureCapacity(), org.openmobileis.common.util.collection.Array.equals(), org.openmobileis.common.util.collection.Array.getLastAdded(), org.openmobileis.common.util.collection.Array.indexOf(), org.openmobileis.common.util.collection.Array.isEmpty(), org.openmobileis.common.util.collection.Array.remove(), org.openmobileis.common.util.collection.Array.removeAll(), org.openmobileis.common.util.collection.Array.replace(), and org.openmobileis.common.util.collection.Array.toArray().

void org.openmobileis.common.util.collection.Array.setSize ( int  size  ) 

set the size of the array.

All element after the size are removed.

Definition at line 133 of file Array.java.

boolean org.openmobileis.common.util.collection.Array.isEmpty (  ) 

Tests if this ArrayList has no elements.

Returns:
true if this ArrayList has no elements; false otherwise.

Definition at line 143 of file Array.java.

References org.openmobileis.common.util.collection.Array.size().

Referenced by org.openmobileis.database.fastobjectdb.db.transaction.Transaction.commit(), org.openmobileis.database.fastobjectdb.db.FODBCollection.deleteObjectWithId(), org.openmobileis.database.fastobjectdb.db.FODBCollection.deleteSingleElement(), org.openmobileis.database.fastobjectdb.db.FODBCollection.replaceElement(), and org.openmobileis.database.fastobjectdb.db.transaction.Transaction.rollback().

Object [] org.openmobileis.common.util.collection.Array.toArray (  ) 

Returns an array containing all of the elements in this ArrayList in the correct order.

Returns:
an array containing all of the elements in this ArrayList in the correct order.

Definition at line 154 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, and org.openmobileis.common.util.collection.Array.size().

Referenced by org.openmobileis.synchro.openmsp.client.db.DBImportFileCoder.decodeData(), org.openmobileis.synchro.openmsp.client.db.DBImportFileCoder.decodeFileData(), org.openmobileis.synchro.openmsp.client.db.SyncActionDBManager.getActionsForService(), org.openmobileis.examples.simpleappli.data.FODB.FODBBaseDataFactory.getAllBaseData(), org.openmobileis.synchro.journal.JournalManager.getAllJournalEntryForService(), org.openmobileis.synchro.algo.replication.utils.DefaultSynchroAtomicObjectDelegate.getAllModifiedAtomicObjectForServiceSince(), org.openmobileis.module.core.ProfileModuleRubric.getAllPropertiesNames(), org.openmobileis.module.core.ProfileModule.getAllPropertiesNames(), org.openmobileis.synchro.algo.replication.ReplicationReturnData.getClientSideModificationList(), org.openmobileis.database.fastobjectdb.db.store.FODBMainFile.getCollectionsList(), org.openmobileis.database.fastobjectdb.FastObjectDB.getDatabaseCollectionArray(), org.openmobileis.synchro.algo.replication.ReplicationReturnData.getServerSideModificationList(), org.openmobileis.synchro.sync4j.client.Sync4jFODBSyncSource.getSyncItemForState(), org.openmobileis.modules.profiles.old.ProfileManager.loadProfile(), org.openmobileis.common.util.collection.Array.main(), org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPDBSynchroTargetListener.processCommand(), org.openmobileis.synchro.openmsp.server.synctarget.DefaultOpenMSPSynchroTargetListener.processCommand(), org.openmobileis.synchro.openmsp.server.synctarget.DefaultOpenMSPSynchroTargetListener.processSyncCommand(), and org.openmobileis.common.util.collection.Sort.returnANotInB().

Object [] org.openmobileis.common.util.collection.Array.toArray ( Object  a[]  ) 

Returns an array containing all of the elements in this ArrayList in the correct order.

The runtime type of the returned array is that of the specified array. If the ArrayList fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this ArrayList.

If the ArrayList fits in the specified array with room to spare (i.e., the ArrayList has more elements than the array), the element in the array immediately following the end of the collection is set to null.

Parameters:
a the array into which the elements of the ArrayList are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose.
Returns:
an array containing the elements of the ArrayList.
Exceptions:
ArrayStoreException if the runtime type of a is not a supertype of the runtime type of every element in this ArrayList.

Definition at line 179 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, and org.openmobileis.common.util.collection.Array.size().

Object org.openmobileis.common.util.collection.Array.get ( int  index  ) 

Returns the element at the specified position in this ArrayList.

Parameters:
index index of element to return.
Returns:
the element at the specified position in this ArrayList.
Exceptions:
IndexOutOfBoundsException if index is out of range (index < 0 || index >= size()).

Definition at line 202 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData.

Referenced by org.openmobileis.database.fastobjectdb.db.index.FODBIndex.add(), org.openmobileis.examples.mycrm.data.Account.addContact(), org.openmobileis.examples.mycrm.terminal.services.LeadsIndexList.addContent(), org.openmobileis.examples.mycrm.terminal.services.DisplayAccountService.addContent(), org.openmobileis.database.fastobjectdb.db.FODBCollection.addElement(), org.openmobileis.common.util.collection.tree.DependTree.addObject(), org.openmobileis.examples.mycrm.data.Contact.addReport(), org.openmobileis.database.fastobjectdb.db.transaction.Transaction.begin(), org.openmobileis.database.fastobjectdb.db.transaction.Transaction.commit(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaStringIndexComparator.compareTo(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaLongIndexComparator.compareTo(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaIntIndexComparator.compareTo(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.deleteAllActionForService(), org.openmobileis.synchro.journal.JournalQueryManager.deleteAllEntryForService(), org.openmobileis.database.fastobjectdb.db.FODBCollection.deleteObjectWithId(), org.openmobileis.database.fastobjectdb.db.FODBCollection.deleteSingleElement(), org.openmobileis.database.fastobjectdb.db.index.FODBIndex.delObjectWithKey(), org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.doSynchro(), org.openmobileis.synchro.openmsp.protocol.Message.encode(), org.openmobileis.synchro.openmsp.protocol.ContainerMessage.encode(), org.openmobileis.services.util.TemplateUtils.fillFormPopUpWithLabel(), org.openmobileis.examples.mycrm.data.jdbc.MyCrmLeadsSynchroTarget.getAllCollectionObject(), org.openmobileis.examples.mycrm.data.jdbc.MyCrmAccountSynchroTarget.getAllCollectionObject(), org.openmobileis.services.cache.WebPageCacheManager.getCachedPage(), org.openmobileis.services.common.CallingServiceManager.getCallingServiceParameters(), org.openmobileis.database.fastobjectdb.db.CollectionManager.getCollectionByName(), org.openmobileis.database.fastobjectdb.db.CollectionManager.getCollectionByType(), org.openmobileis.database.fastobjectdb.db.FODBCollection.getCollectionIdIndex(), org.openmobileis.database.fastobjectdb.db.FODBCollection.getCollectionIndexList(), org.openmobileis.database.fastobjectdb.db.CollectionManager.getCollectionList(), org.openmobileis.examples.mycrm.data.jdbc.MyCrmAccountSynchroTarget.getCollectionObjectWithId(), org.openmobileis.examples.mycrm.data.Account.getContactById(), org.openmobileis.services.navigation.NavigationBarManager.getCurrentServiceData(), org.openmobileis.services.navigation.NavigationBarManager.getNavigationBar(), org.openmobileis.common.util.collection.tree.DependTree.getNextPhaseObjectList(), org.openmobileis.examples.mycrm.data.Contact.getReportById(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaStringIndexComparator.getSearchAlgo(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaLongIndexComparator.getSearchAlgo(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaIntIndexComparator.getSearchAlgo(), org.openmobileis.synchro.openmsp.server.synctarget.SynchroTargerManager.getSynchroTargetListener(), org.openmobileis.module.terminal.ModuleManager.initModule(), org.openmobileis.common.util.collection.tree.DependTree.invalidDependNodeChilds(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaStringIndexComparator.isSelected(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaLongIndexComparator.isSelected(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaIntIndexComparator.isSelected(), org.openmobileis.modules.profiles.old.ProfileManager.loadProfile(), org.openmobileis.services.common.ServiceManager.loadRubricLoader(), org.openmobileis.synchro.openmsp.client.core.test.TestListenerOrdonancer.main(), org.openmobileis.common.util.collection.Array.main(), org.openmobileis.synchro.openmsp.protocol.ContainerMessage.nextMessage(), org.openmobileis.module.terminal.StaticModuleManagerListener.notifyModuleLoading(), org.openmobileis.services.common.CallingServiceManager.peekCallingService(), org.openmobileis.module.terminal.ModuleJarSyncListener.receiveResultCommand(), org.openmobileis.examples.mycrm.data.Account.removeContact(), org.openmobileis.examples.mycrm.data.Contact.removeReport(), org.openmobileis.database.fastobjectdb.db.FODBCollection.replaceElement(), org.openmobileis.synchro.openmsp.protocol.ContainerMessage.resetCursor(), org.openmobileis.common.util.collection.tree.DependTree.resetPhaseList(), org.openmobileis.services.navigation.NavigationBarManager.resetServiceTable(), org.openmobileis.database.fastobjectdb.db.transaction.Transaction.rollback(), org.openmobileis.synchro.openmsp.client.services.SynchroJournalDisplayService.runTemplate(), org.openmobileis.examples.mycrm.terminal.services.SearchAccountService.runTemplate(), org.openmobileis.services.servlet.IndexServlet.runTemplate(), org.openmobileis.examples.mycrm.terminal.services.DisplayContactService.runTemplate(), org.openmobileis.examples.mycrm.terminal.services.DisplayAccountService.runTemplate(), org.openmobileis.services.cache.WebPageCacheManager.sendCacheEvent(), org.openmobileis.services.cache.WebPageCacheManager.setCachedPage(), org.openmobileis.services.navigation.NavigationBarManager.setCurrentService(), org.openmobileis.modules.common.data.LabelManager.sortLabelArray(), org.openmobileis.oscar.bundlemanager.OscarBundleManager.startBundles(), org.openmobileis.synchro.openmsp.protocol.DefaultHandler.startElement(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.TestDBAndIndex(), org.openmobileis.test.bundle.profil.TestBaseProfil.testXmlModuleParser(), org.openmobileis.examples.mycrm.data.jdbc.MyCrmAccountSynchroTarget.updateCollectionObject(), and org.openmobileis.services.navigation.NavigationBarManager.updateRequestParametersForRedirectService().

boolean org.openmobileis.common.util.collection.Array.add ( Object  o  ) 

Appends the specified element to the end of this ArrayList.

Parameters:
o element to be appended to this ArrayList.
Returns:
true.

Implements org.openmobileis.common.util.collection.FilterCollection.

Definition at line 214 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, org.openmobileis.common.util.collection.Array.ensureCapacity(), and org.openmobileis.common.util.collection.Array.size().

Referenced by org.openmobileis.synchro.openmsp.protocol.ContainerMessage.add(), org.openmobileis.database.fastobjectdb.db.store.FODBMainFile.addCollection(), org.openmobileis.database.fastobjectdb.db.CollectionManager.addCollection(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaStringIndexComparator.addComparator(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaLongIndexComparator.addComparator(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaIntIndexComparator.addComparator(), org.openmobileis.examples.mycrm.data.Account.addContact(), org.openmobileis.services.servlet.IndexServlet.addContentListener(), org.openmobileis.module.core.ProfileModule.addDependProfilModule(), org.openmobileis.synchro.openmsp.server.synctarget.DefaultOpenMSPSynchroTargetListener.addFileToSynchro(), org.openmobileis.database.fastobjectdb.db.FODBCollection.addIndex(), org.openmobileis.common.context.ApplicationContextManager.addManager(), org.openmobileis.synchro.algo.replication.ReplicationReturnData.addReplicationSAOEvent(), org.openmobileis.examples.mycrm.data.Contact.addReport(), org.openmobileis.module.core.ProfileModuleRubric.addSynchroListener(), org.openmobileis.synchro.openmsp.server.synctarget.SynchroTargerManager.addSynchroTargetListener(), org.openmobileis.database.fastobjectdb.db.transaction.Transaction.addTransactionFile(), org.openmobileis.synchro.openmsp.client.db.DBImportFileCoder.decodeData(), org.openmobileis.synchro.openmsp.client.db.DBImportFileCoder.decodeFileData(), org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.enterTransaction(), org.openmobileis.modules.common.history.SessionHistoryManager.getAll(), org.openmobileis.modules.common.history.FODBHistoryManager.getAll(), org.openmobileis.test.database.TestDummyFODBSyncTarget.getAllCollectionObject(), org.openmobileis.examples.mycrm.data.jdbc.MyCrmLeadsSynchroTarget.getAllCollectionObject(), org.openmobileis.examples.mycrm.data.jdbc.MyCrmLabelSynchroTarget.getAllCollectionObject(), org.openmobileis.examples.mycrm.data.jdbc.MyCrmAccountSynchroTarget.getAllCollectionObject(), org.openmobileis.modules.common.database.jdbc.JDBCTerminalUserFODBSyncTarget.getAllCollectionObject(), org.openmobileis.examples.server.synchro.BaseDataFODBSyncTarget.getAllCollectionObject(), org.openmobileis.modules.common.database.jdbc.JDBCGlobalPropertyFactory.getAllGlobalProperties(), org.openmobileis.synchro.algo.replication.utils.DefaultSynchroAtomicObjectDelegate.getAllModifiedAtomicObjectForServiceSince(), org.openmobileis.module.core.ProfileModuleRubric.getAllPropertiesNames(), org.openmobileis.module.core.ProfileModule.getAllPropertiesNames(), org.openmobileis.modules.common.database.jdbc.JDBCLabelFactory.getDBLabelListForCategorie(), org.openmobileis.modules.common.database.jdbc.JDBCIntlLabelFactory.getLabelListForCategorie(), org.openmobileis.common.util.collection.tree.DependTree.getNextPhaseObjectList(), org.openmobileis.modules.common.database.jdbc.JDBCGlobalPropertyFactory.getPropertiesForService(), org.openmobileis.common.util.PersistentPropertiesManager.getPropertyKeysForService(), org.openmobileis.synchro.sync4j.client.Sync4jFODBSyncSource.getSyncItemForState(), org.openmobileis.modules.profiles.old.ProfileManager.loadProfile(), org.openmobileis.modules.profiles.terminal.RubricLoader.loadService(), org.openmobileis.common.util.collection.Array.main(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaStringIndexComparator.mergeIndexComporator(), org.openmobileis.module.terminal.StaticModuleManagerListener.notifyModuleUpdate(), org.openmobileis.services.common.CallingServiceManager.peekToTheSpecifiedCallingService(), org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPDBSynchroTargetListener.processCommand(), org.openmobileis.synchro.openmsp.server.synctarget.DefaultOpenMSPSynchroTargetListener.processCommand(), org.openmobileis.synchro.openmsp.server.synctarget.DefaultOpenMSPSynchroTargetListener.processSyncCommand(), org.openmobileis.services.common.CallingServiceManager.pushCallingService(), org.openmobileis.module.terminal.ModuleJarSyncListener.receiveResultCommand(), org.openmobileis.synchro.journal.JournalManager.registerJournalLogRenderer(), org.openmobileis.services.cache.WebPageCacheManager.registerService(), org.openmobileis.services.navigation.NavigationBarManager.resetServiceTable(), org.openmobileis.common.util.collection.Sort.returnANotInB(), org.openmobileis.services.navigation.NavigationBarManager.setCurrentService(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaStringIndexComparator.setOperand(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaLongIndexComparator.setOperand(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaIntIndexComparator.setOperand(), org.openmobileis.test.mock.synchro.SimpleMockSynchroManager.synchronize(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.TestDBAndIndex(), and org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch().

boolean org.openmobileis.common.util.collection.Array.replace ( int  index,
Object  o 
)

replace at the specified index the element.

if there is no element at index add the new one at the end of the array.

Parameters:
index index in the array where element is replaced.
o element to be replaced to this ArrayList.
Returns:
true.

Definition at line 228 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, and org.openmobileis.common.util.collection.Array.size().

Referenced by org.openmobileis.examples.mycrm.data.Account.addContact(), and org.openmobileis.examples.mycrm.data.Contact.addReport().

boolean org.openmobileis.common.util.collection.Array.add ( int  index,
Object  o 
)

Appends the specified element to the end of this ArrayList.

Parameters:
o element to be appended to this ArrayList.
Returns:
true.

Definition at line 242 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, org.openmobileis.common.util.collection.Array.ensureCapacity(), and org.openmobileis.common.util.collection.Array.size().

Object org.openmobileis.common.util.collection.Array.getLastAdded (  ) 

return the last added object in the array.

Parameters:
@return last added Object.

Definition at line 256 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, and org.openmobileis.common.util.collection.Array.size().

Referenced by org.openmobileis.database.fastobjectdb.db.query.soda.SodaStringIndexComparator.addComparator(), org.openmobileis.database.fastobjectdb.db.query.soda.SodaLongIndexComparator.addComparator(), and org.openmobileis.database.fastobjectdb.db.query.soda.SodaIntIndexComparator.addComparator().

boolean org.openmobileis.common.util.collection.Array.contains ( Object  o  ) 

return true if the array contains the specified object false otherwise.

Parameters:
Object o : the object to be tested. O must implements equals method
Returns:
true if the specified object is inside the array.

Definition at line 269 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, org.openmobileis.common.util.collection.Array.equals(), and org.openmobileis.common.util.collection.Array.size().

Referenced by org.openmobileis.database.fastobjectdb.db.FODBCollection.addIndex(), org.openmobileis.database.fastobjectdb.db.transaction.Transaction.addTransactionFile(), org.openmobileis.common.user.profile.Profile.equals(), org.openmobileis.common.user.profil.Profile.equals(), org.openmobileis.test.bundle.profil.TestBaseProfil.testXmlModuleParser(), and org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.validateThread().

int org.openmobileis.common.util.collection.Array.indexOf ( Object  o  ) 

Searches for the first occurence of the given argument, testing for equality using the equals method.

return the index of the occurence, -1 if not found

Parameters:
Object o : the object to be searched. O must implements equals method
Returns:
index of the first occurence, -1 if not found.

Definition at line 285 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, org.openmobileis.common.util.collection.Array.equals(), and org.openmobileis.common.util.collection.Array.size().

boolean org.openmobileis.common.util.collection.Array.addArray ( Array  a  ) 

Appends the specified ArrayList to the end of this ArrayList.

Parameters:
a ArrayList to be appended to this ArrayList..
Returns:
true.

Definition at line 300 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, and org.openmobileis.common.util.collection.Array.size().

Referenced by org.openmobileis.database.fastobjectdb.db.query.soda.SodaLongIndexComparator.mergeIndexComporator(), and org.openmobileis.database.fastobjectdb.db.query.soda.SodaIntIndexComparator.mergeIndexComporator().

Object org.openmobileis.common.util.collection.Array.remove ( int  index  ) 

Removes the element at the specified position in this ArrayList.

Shifts any subsequent elements to the left (subtracts one from their indices).

Parameters:
index the index of the element to removed.
Returns:
the element that was removed from the ArrayList.
Exceptions:
IndexOutOfBoundsException if index out of range (index < 0 || index >= size()).

Definition at line 320 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, and org.openmobileis.common.util.collection.Array.size().

Referenced by org.openmobileis.database.fastobjectdb.db.transaction.Transaction.commit(), org.openmobileis.common.util.collection.Array.main(), org.openmobileis.services.common.CallingServiceManager.peekToTheSpecifiedCallingService(), org.openmobileis.services.common.CallingServiceManager.popCallingService(), org.openmobileis.services.navigation.NavigationBarManager.popService(), org.openmobileis.common.util.collection.Array.remove(), org.openmobileis.examples.mycrm.data.Account.removeContact(), org.openmobileis.examples.mycrm.data.Contact.removeReport(), org.openmobileis.database.fastobjectdb.db.transaction.Transaction.rollback(), and org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.TestDBAndIndex().

Object org.openmobileis.common.util.collection.Array.remove ( Object  element  ) 

Removes the element in this ArrayList.

To find the element, array element is compared with equals method until found.

Parameters:
element to removed.
Returns:
the element that was removed from the ArrayList. Null if not found.

Definition at line 340 of file Array.java.

References org.openmobileis.common.util.collection.Array.elementData, org.openmobileis.common.util.collection.Array.equals(), and org.openmobileis.common.util.collection.Array.remove().


Member Data Documentation

Object org.openmobileis.common.util.collection.Array.elementData[] [protected]

The array buffer into which the elements of the ArrayList are stored.

The capacity of the ArrayList is the length of this array buffer.

Definition at line 47 of file Array.java.

Referenced by org.openmobileis.common.util.collection.Array.add(), org.openmobileis.common.util.collection.Array.addArray(), org.openmobileis.common.util.collection.Array.Array(), org.openmobileis.common.util.collection.Array.contains(), org.openmobileis.common.util.collection.Array.ensureCapacity(), org.openmobileis.common.util.collection.Array.equals(), org.openmobileis.common.util.collection.Array.get(), org.openmobileis.common.util.collection.Array.getArrayElements(), org.openmobileis.common.util.collection.Array.getLastAdded(), org.openmobileis.common.util.collection.Array.indexOf(), org.openmobileis.common.util.collection.Array.remove(), org.openmobileis.common.util.collection.Array.replace(), org.openmobileis.common.util.collection.Array.setArrayElements(), and org.openmobileis.common.util.collection.Array.toArray().


The documentation for this class was generated from the following file:
Generated on Mon Dec 4 11:03:34 2006 for OpenMobileIS by  doxygen 1.5.1-p1