Libraryless. Click here for Pure Java version (18868L/117K).
1 | final sclass ConceptFieldIndexDesc<A extends Concept, Val> extends ConceptFieldIndexBase<A, Val> {
|
2 | *(Class<A> cc, S field) { super(cc, field); }
|
3 | *(Concepts concepts, Class<A> cc, S field) { super(concepts, cc, field); }
|
4 | |
5 | void init {
|
6 | valueToObject = treeMultiSetMap(reverseOrder()); |
7 | } |
8 | |
9 | void register {
|
10 | concepts.addFieldIndex(cc, field, this); |
11 | } |
12 | |
13 | public void close :: before {
|
14 | concepts.removeFieldIndex(cc, field, this); |
15 | } |
16 | |
17 | synchronized L<A> objectsWithValueGreaterThan(O value) {
|
18 | SortedMap<O, Set<A>> subMap = ((SortedMap<O, Set<A>>) valueToObject.data).headMap(value); |
19 | ret concatLists(values(subMap)); |
20 | } |
21 | } |
Began life as a copy of #1008616
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1013539 |
| Snippet name: | ConceptFieldIndexDesc - uses TreeMap |
| Eternal ID of this version: | #1013539/26 |
| Text MD5: | b472e99a1db5f70d98034de6f185a0d7 |
| Transpilation MD5: | 2f53c3e8441be027f420dc8411356e7f |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-06 10:53:50 |
| Source code size: | 673 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 816 / 1631 |
| Version history: | 25 change(s) |
| Referenced in: | [show references] |