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

14
LINES

< > BotCompany Repo | #1013076 // exactTripleIndex (case-insensitive)

JavaX fragment (include)

static ExactTripleIndex exactTripleIndex() {
  ret new ExactTripleIndex;
}

sclass ExactTripleHasher implements Hasher<TripleWeb> {
  public int hashCode(TripleWeb w) { ret tripleHashCodeByContentsIC(w); }
  public bool equals(TripleWeb a, TripleWeb b) { ret tripleEqualsByContentsIC(a, b); }
}

sclass ExactTripleIndex extends CustomCompactHashSet<TripleWeb> {
  *() {
    super(new ExactTripleHasher);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013076
Snippet name: exactTripleIndex (case-insensitive)
Eternal ID of this version: #1013076/3
Text MD5: 0bc2598c7febbae993a6daada07ed71a
Author: stefan
Category: javax / a.i
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-24 20:20:46
Source code size: 422 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 321 / 343
Version history: 2 change(s)
Referenced in: [show references]