B4J Library [B4X] [Web] MinimaListUtils

MinimaListUtils
Version : 1.03
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.

It depends on KeyValueStore library.
This b4xlib replaces the class from MinimaList published in B4J code snippet.

Code snippets also included for creating RESTful API subs for MinimaList Controller when developing with Web API Template 2.04+.

1697614452588.png


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
What's New
  • Version 1.03
    • Update Snippets, removed #plural tag
  • Version 1.02
    • Added CopyList sub
  • Version 1.01
    • Add KeyValueStore dependency to manifest file
 

Attachments

  • MinimaListUtils.b4xlib
    6.2 KB · Views: 13
Last edited:
Top