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).

1  
scope nonStaticNonPrimitiveNonTransientFieldObjects_cachedArray.
2  
 
3  
static Map<Class, Field[]> #cache = dangerousWeakMap();
4  
5  
static Field[] nonStaticNonPrimitiveNonTransientFieldObjects_cachedArray(O o) {
6  
  if (o == null) null;
7  
  Class c = _getClass(o);
8  
  Field[] fields = cache.get(c);
9  
  if (fields == null) {
10  
    fields = toArrayOfType Field(nonStaticNonPrimitiveNonTransientFieldObjects(c));
11  
    cache.put(c, fields);
12  
  }
13  
  ret fields;
14  
}
15  
16  
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: 158 / 237
Version history: 2 change(s)
Referenced in: [show references]