Inheritance diagram for org.openmobileis.common.util.collection.Array:
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 |
|
Constructs an empty ArrayList with the specified initial capacity.
Definition at line 74 of file Array.java. |
|
Appends the specified element to the end of this ArrayList.
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(). |
|
|
Appends the specified ArrayList to the end of this ArrayList.
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(). |
|
return true if the array contains the specified object false otherwise.
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(), and org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.validateThread(). |
|
Increases the capacity of this
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(). |
|
Returns the element at the specified position in this ArrayList.
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.database.fastobjectdb.db.FODBCollection.addElement(), org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.addListener(), org.openmobileis.database.fastobjectdb.db.transaction.Transaction.begin(), org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.beginSynchro(), 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.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.services.navigation.NavigationBarManager.getCurrentServiceData(), org.openmobileis.services.navigation.NavigationBarManager.getNavigationBar(), org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.getNextListenerList(), 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.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.synchro.openmsp.client.core.test.TestListenerOrdonancer.main(), org.openmobileis.common.util.collection.Array.main(), org.openmobileis.synchro.openmsp.protocol.ContainerMessage.nextMessage(), org.openmobileis.services.common.CallingServiceManager.peekCallingService(), org.openmobileis.database.fastobjectdb.db.FODBCollection.replaceElement(), org.openmobileis.services.navigation.NavigationBarManager.resetServiceTable(), org.openmobileis.database.fastobjectdb.db.transaction.Transaction.rollback(), org.openmobileis.synchro.openmsp.client.services.SynchroJournalDisplayService.runTemplate(), org.openmobileis.services.servlet.IndexServlet.runTemplate(), org.openmobileis.services.cache.WebPageCacheManager.setCachedPage(), org.openmobileis.services.navigation.NavigationBarManager.setCurrentService(), org.openmobileis.modules.crm.data.common.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.modules.profils.embedded.data.ProfilManager.toString(), and org.openmobileis.services.navigation.NavigationBarManager.updateRequestParametersForRedirectService(). |
|
return the last added object in the array.
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(). |
|
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
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(). |
|
Tests if this ArrayList has no elements.
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(). |
|
Removes the element in this ArrayList. To find the element, array element is compared with equals method until 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(). |
|
Removes the element at the specified position in this ArrayList. Shifts any subsequent elements to the left (subtracts one from their indices).
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.services.common.ServiceManager.removeModuleLoader(), org.openmobileis.database.fastobjectdb.db.transaction.Transaction.rollback(), and org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.TestDBAndIndex(). |
|
replace at the specified index the element. if there is no element at index add the new one at the end of the array.
Definition at line 228 of file Array.java. References org.openmobileis.common.util.collection.Array.elementData, and org.openmobileis.common.util.collection.Array.size(). |
|
set the size of the array. All element after the size are removed. Definition at line 133 of file Array.java. |
|
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(). |
|
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
Definition at line 179 of file Array.java. References org.openmobileis.common.util.collection.Array.elementData, and org.openmobileis.common.util.collection.Array.size(). |
|
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.synchro.journal.JournalManager.getAllJournalEntryForService(), org.openmobileis.modules.profils.embedded.data.ProfilRubric.getAllPropertiesNames(), org.openmobileis.modules.profils.embedded.data.ProfilModule.getAllPropertiesNames(), org.openmobileis.modules.crm.database.common.jdbc.JDBCRepresentantFactory.getAllRepresentants(), org.openmobileis.synchro.algo.replication.ReplicationReturnData.getClientSideModificationList(), org.openmobileis.database.fastobjectdb.db.store.FODBMainFile.getCollectionsList(), org.openmobileis.database.fastobjectdb.FastObjectDB.getDatabaseCollectionArray(), org.openmobileis.modules.crm.database.common.jdbc.JDBCRepresentantFactory.getRepIdsList(), org.openmobileis.synchro.algo.replication.ReplicationReturnData.getServerSideModificationList(), org.openmobileis.synchro.sync4j.client.Sync4jFODBSyncSource.getSyncItemForState(), org.openmobileis.common.util.collection.Array.main(), org.openmobileis.synchro.openmsp.server.synctarget.OpenMSPDBSynchroTargetListener.processCommand(), org.openmobileis.synchro.openmsp.server.synctarget.DefaultOpenMSPSynchroTargetListener.processCommand(), and org.openmobileis.synchro.openmsp.server.synctarget.DefaultOpenMSPSynchroTargetListener.processSyncCommand(). |
|
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(). |