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

9
LINES

< > BotCompany Repo | #1024099 // objectDirectlyReferencesOtherObject

JavaX fragment (include)

sbool objectDirectlyReferencesOtherObject(O a, O b) {
  if (o == null) false;
  if (a instanceof O[])
    ret contains((O[]) a, b);
  for (Field f : nonStaticNonPrimitiveFieldObjects(o))
    if (f.get(a) == b)
      true;
  false;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024099
Snippet name: objectDirectlyReferencesOtherObject
Eternal ID of this version: #1024099/1
Text MD5: d8abded7f12d9a531a5032c20554ddce
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-20 19:17:19
Source code size: 240 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 147 / 189
Referenced in: [show references]