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

11
LINES

< > BotCompany Repo | #1019498 // getFieldOrder

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

Libraryless. Click here for Pure Java version (2766L/16K).

static Map<Class, LS> getFieldOrder_cache = weakMap();

static LS getFieldOrder(O o) {
  ret getFieldOrder(_getClass(o));
}

static LS getFieldOrder(Class c) {
  if (c == null) null;
  ret getOrCreate(getFieldOrder_cache, c,
    () -> splitAtSpace(toStringOpt(getOpt(c, '_fieldOrder))));
}

Author comment

Began life as a copy of #1019416

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019498
Snippet name: getFieldOrder
Eternal ID of this version: #1019498/6
Text MD5: 43dd649fb25c50b7825971895ef50425
Transpilation MD5: ce1395db34307f634c341f7f1e17b6bc
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-23 16:36:18
Source code size: 299 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 352 / 480
Version history: 5 change(s)
Referenced in: [show references]