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

12
LINES

< > BotCompany Repo | #1030599 // printConceptIndices

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

Libraryless. Click here for Pure Java version (14667L/94K).

svoid printConceptIndices(Concepts cc default db_mainConcepts()) {
  if (cc == null) ret;
  Set<Class<? extends Concept>> classes = joinSets(keys(cc.fieldIndices), keys(cc.ciFieldIndices));
  print(n2(classes, "indexed class", "indexed classes") + ".");
  for (Class<? extends Concept> c : classes) {
    print("Indices on " + c + ":");
    for (S field, IFieldIndex idx : cc.fieldIndices.get(c))
      print("  " + field + ": " + idx);
    for (S field, IFieldIndex idx : cc.ciFieldIndices.get(c))
      print("  " + field + " [case-insensitive]: " + idx);
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030599
Snippet name: printConceptIndices
Eternal ID of this version: #1030599/3
Text MD5: a6da36cb73c39aa9fc14cb284cc72a34
Transpilation MD5: 626505f9383afdce6cbbf26d3548e048
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-17 03:24:41
Source code size: 574 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 123 / 196
Version history: 2 change(s)
Referenced in: [show references]