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

7
LINES

< > BotCompany Repo | #1030923 // findBackRefsWithFieldNames

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (14904L/96K).

static <A extends Concept> LPair<A, S> findBackRefsWithFieldNames(Concept c, Class<A> type) {
  new LPair<A, S> l;
  if (c != null && c.backRefs != null) for (Concept.Ref r : cloneList(c.backRefs))
    if (instanceOf(r.concept(), type))
      l.add(pair((A) r.concept(), fieldNameForConceptLink(r.concept(), c)));
  ret l;
}

Author comment

Began life as a copy of #1007228

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030923
Snippet name: findBackRefsWithFieldNames
Eternal ID of this version: #1030923/2
Text MD5: e99da9fa78acbef412c6db70fcc57ec8
Transpilation MD5: f23df838fd92f066e70f6cf0e46c5a7d
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-10 19:02:10
Source code size: 330 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 183 / 277
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)