Libraryless. Click here for Pure Java version (16157L/104K).
1 | sclass ConceptShadow { |
2 | Map map; |
3 | |
4 | *(Concept c) { |
5 | map = conceptShadow_rawMap(c); |
6 | map = toSortedArrayBasedMap(mapValues convertValue(map)); |
7 | } |
8 | |
9 | O convertValue(O o) { |
10 | if (o cast Concept.Ref) |
11 | ret conceptIDObject(o!); |
12 | if (o instanceof Concept.RefL) |
13 | ret lmap conceptIDObject((L<Concept>) o); |
14 | if (o cast Concept) |
15 | ret ConceptID(o); |
16 | ret o; |
17 | } |
18 | |
19 | toString { ret "ConceptShadow " + map; } |
20 | |
21 | O get(O key) { ret mapGet(map, key); } |
22 | |
23 | public bool equals(O o) { |
24 | if (o cast ConceptShadow) |
25 | ret eq(map, o.map); |
26 | false; |
27 | } |
28 | |
29 | public int hashCode() { |
30 | ret _hashCode(map); |
31 | } |
32 | |
33 | long id() { ret toLong(get("id")); } |
34 | } |
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031055 |
Snippet name: | ConceptShadow |
Eternal ID of this version: | #1031055/19 |
Text MD5: | 9b129272a5aadec91104299face67d66 |
Transpilation MD5: | 77061200ea728bddf9f9aad4934b74ef |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-11 16:54:13 |
Source code size: | 710 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 320 / 563 |
Version history: | 18 change(s) |
Referenced in: | [show references] |