B4J Code Snippet MinimaList - Minimal List of Maps


MinimaList
Description: Minimal List of Maps
Version : 1.02

Treat it as some kind of a NoSQL for key-value pair or KVS.
It is suitable for small demo but I don't recommend it for serious project.

Properties
  • List (read/write)
  • First As Map (read)
  • Last As Map (read)
Methods
  • Add (M As Map)
  • CopyList As Object
  • Count (key As String, id As Long) As Int
  • Remove (Index As Long)
  • Remove2 (M As Map)
  • RemoveKey (Key As String, Index As Long)
  • RemoveKey2 (Key As String, M As Map)
  • IndexFromMap (M As Map) As Long
  • IndexFromId (id As Long) As Long
  • Find (id As Long) As Map
  • FindFirst (keys As List, values As List) As Map
  • FindAll (keys As List, values As List) As List
  • FindAnyLike (keys As List, values As List) As List
  • Exclude (id As Long) As List
  • ExcludeAll (keys As List, values As List) As List
  • ExcludeAny (keys As List, values As List) As List
Related library:
 

Attachments

  • MinimaList.bas
    6.4 KB · Views: 355
Last edited:

aeric

Expert
Licensed User
Longtime User
A bug found and fixed a moment ago. MinimaList.bas reuploaded.
 

aeric

Expert
Licensed User
Longtime User
Updated to version 1.02
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…