Returns NULL if no mapping exists or if the object has been garbage collected.
@parameter key | @parameter result |
Signature
METHODS get IMPORTING !key TYPE string
RETURNING VALUE(result) TYPE REF TO object.
| Library | Role | Version | License |
|---|---|---|---|
| Astro | Site framework | 6.3.1 | MIT |
| Astro React | React integration | 5.0.4 | MIT |
| Astro Sitemap | Sitemap generation | 3.7.2 | MIT |
| UI5 Web Components | UI primitives | 2.22.0 | Apache-2.0 |
| UI5 Web Components Fiori | Fiori shell components | 2.22.0 | Apache-2.0 |
| UI5 Web Components Icons | Icon set | 2.22.0 | Apache-2.0 |
| UI5 Web Components React | React wrappers | 2.22.0 | Apache-2.0 |
| React | UI runtime | 19.2.6 | MIT |
| React DOM | DOM renderer | 19.2.6 | MIT |
| Shiki | Syntax highlighting | 4.0.2 | MIT |
This interface defines a WeakMap<string, object>. It allows storing and retrieving objects using a string key. Internally, objects are weakly referenced (using cl_abap_weak_reference) and may be garbage collected if no strong references exist elsewhere in the system.
Returns NULL if no mapping exists or if the object has been garbage collected.
@parameter key | @parameter result |
METHODS get IMPORTING !key TYPE string
RETURNING VALUE(result) TYPE REF TO object.If a mapping for the key already exists, it will be overwritten.
@parameter key | @parameter obj |
METHODS set IMPORTING !key TYPE string
obj TYPE REF TO object.Returns true if a mapping was removed, false otherwise.
@parameter key | @parameter result |
METHODS remove IMPORTING !key TYPE string
RETURNING VALUE(result) TYPE abap_bool.@parameter result |
METHODS keys RETURNING VALUE(result) TYPE REF TO /ork/if_hs_string_r.METHODS clear.METHODS clean_up.TYPES: BEGIN OF ty_s_alive_map,
key TYPE string,
obj TYPE REF TO object,
END OF ty_s_alive_map.