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

9
LINES

< > BotCompany Repo | #1024099 // objectDirectlyReferencesOtherObject

JavaX fragment (include)

1  
sbool objectDirectlyReferencesOtherObject(O a, O b) {
2  
  if (o == null) false;
3  
  if (a instanceof O[])
4  
    ret contains((O[]) a, b);
5  
  for (Field f : nonStaticNonPrimitiveFieldObjects(o))
6  
    if (f.get(a) == b)
7  
      true;
8  
  false;
9  
}

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: 148 / 191
Referenced in: [show references]