[B4X][LOA] ListOfArrays - lightweight, powerful and flexible collection
ListOfArrays (LOA) is a simple list where each item is an array of objects, and each array represents a row. As LOA stores tabular data, all rows have the same length. LOA is lightweight and a list can be converted to a LOA and vice versa, with (almost) no overhead. It is loosely inspired by...
[B4X] MinimaListUtils
Version : 3.00 A utility class to manipulate a simple List of Map to do basic CRUD. Treat it as some kind of a NoSQL for key-value pairs. It is suitable for small demo if you don't want to use SQL database. Depends on: RandomAccessFile Note: You can use File.ReadBytes and File.WriteBytes to...
Which one is better?
My answer: Depends
LOA is list of arrays
MinimaList is list of maps
In LOA, you can convert between List and ListOfArrays.
In MinimaList, you cannot convert your List directly at the moment.
Each item as type of Maps is added to the internal list.
Instead of accessing the item using index, we access the items by id key in MinimaList.
If an item is removed, the item with that id will not be available similar to deleting a row from a database table with autoincrement id.