Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1031755 // nonStaticNonPrimitiveNonTransientFieldObjects_cachedArray

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2826L/17K).

scope nonStaticNonPrimitiveNonTransientFieldObjects_cachedArray.
 
static Map<Class, Field[]> #cache = dangerousWeakMap();

static Field[] nonStaticNonPrimitiveNonTransientFieldObjects_cachedArray(O o) {
  if (o == null) null;
  Class c = _getClass(o);
  Field[] fields = cache.get(c);
  if (fields == null) {
    fields = toArrayOfType Field(nonStaticNonPrimitiveNonTransientFieldObjects(c));
    cache.put(c, fields);
  }
  ret fields;
}

end scope

Author comment

Began life as a copy of #1031066

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031755
Snippet name: nonStaticNonPrimitiveNonTransientFieldObjects_cachedArray
Eternal ID of this version: #1031755/3
Text MD5: 05f604547307652e5d97dc41e7e0efca
Transpilation MD5: 5d979d3e6e9b9b4b4e573c442de5e0ac
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 05:53:47
Source code size: 465 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 159 / 238
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)