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

8
LINES

< > BotCompany Repo | #1024566 // nonStaticNonTransientFields_withoutSuperclasses

JavaX fragment (include)

static Set<S> nonStaticNonTransientFields_withoutSuperclasses(O o) {
  new TreeSet<S> fields;
  Class _c = _getClass(o);
  if (_c != null) for (Field f : _c.getDeclaredFields())
    if ((f.getModifiers() & (Modifier.STATIC|Modifier.TRANSIENT)) == 0)
      fields.add(f.getName());
  ret fields;
}

Author comment

Began life as a copy of #1015807

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: #1024566
Snippet name: nonStaticNonTransientFields_withoutSuperclasses
Eternal ID of this version: #1024566/1
Text MD5: 141c5bc9be9f9bf0060b192ebd3e19a8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-18 18:49:18
Source code size: 303 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 248 / 270
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025151 - objectToMap_nonTransient_singleClass