Libraryless. Click here for Pure Java version (9523L/52K).
1 | sclass GenericallyScored<A, B extends Comparable<B>> extends Var<A> {
|
2 | B score; |
3 | |
4 | *() {}
|
5 | *(A a, B score) { super(a); this.score = score; }
|
6 | |
7 | B score() { ret score; }
|
8 | |
9 | toString {
|
10 | ret score + ": " + str(get()); |
11 | } |
12 | } |
Began life as a copy of #1015268
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1036268 |
| Snippet name: | GenericallyScored - Comparable-scored value |
| Eternal ID of this version: | #1036268/2 |
| Text MD5: | 4be07c30f3d7fc71700d1e6f9487ad42 |
| Transpilation MD5: | a315eadc6dfbcec41263dc109d5d5111 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-11-06 20:54:39 |
| Source code size: | 242 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 569 / 672 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |