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

6
LINES

< > BotCompany Repo | #1016664 // fieldTypeCompatibleWith - can the field be assigned a value of type X?

JavaX fragment (include)

sbool fieldTypeCompatibleWith(O o, S field, O value) {
  Class type = fieldType(o, field);
  ret value == null
    ? !isPrimitiveType(type)
    : isInstanceX(type, value);
}

Author comment

Began life as a copy of #1006562

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016664
Snippet name: fieldTypeCompatibleWith - can the field be assigned a value of type X?
Eternal ID of this version: #1016664/2
Text MD5: 4b3b11e582ca02fa658aef22bb517873
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-27 13:01:31
Source code size: 178 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 352 / 373
Version history: 1 change(s)
Referenced in: [show references]