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

6
LINES

< > BotCompany Repo | #1006565 // structureOrText_crud - render field value to string for SimpleCRUD

JavaX fragment (include)

static S structureOrText_crud(O o) {
  if (o == null) ret "";
  if (o instanceof Long) ret str(o); // avoid the "L"
  if (o instanceof File) ret ((File) o).getAbsolutePath();
  ret str(o);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1006565
Snippet name: structureOrText_crud - render field value to string for SimpleCRUD
Eternal ID of this version: #1006565/2
Text MD5: ae3a02e3d065fa4703105a9cdd00c1b7
Author: stefan
Category: javax / concepts / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-04 19:20:31
Source code size: 195 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 595 / 605
Version history: 1 change(s)
Referenced in: [show references]