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

3
LINES

< > BotCompany Repo | #1002772 // hasField - does a class or an object have a certain field?

JavaX fragment (include)

static boolean hasField(Object o, String field) {
  ret findField2(o, field) != null;
}

Author comment

Began life as a copy of #1000891

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002772
Snippet name: hasField - does a class or an object have a certain field?
Eternal ID of this version: #1002772/1
Text MD5: 89a98b68ab0216cca365ee4a975659b7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-30 22:06:55
Source code size: 89 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 689 / 692
Referenced in: [show references]