Libraryless. Click here for Pure Java version (7177L/42K).
1 | svoid test_CalculatedFieldIndexedList() {
|
2 | CalculatedFieldIndexedList<GOperator, S> operators = new(o -> o.name); |
3 | GOperator<Class> iround = new GOperator<Class>("iround");
|
4 | GOperator<Class> bla = new GOperator<Class>("bla");
|
5 | addAll(operators, iround, bla); |
6 | assertSameVerbose(iround, operators.getByKey("iround"));
|
7 | assertSameVerbose(bla, operators.getByKey("bla"));
|
8 | assertNullVerbose(operators.getByKey("what"));
|
9 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033969 |
| Snippet name: | test_CalculatedFieldIndexedList (OK) |
| Eternal ID of this version: | #1033969/1 |
| Text MD5: | 815d62c9369ca19eca5f55100b3cbfd9 |
| Transpilation MD5: | 0d0453d3ce52546a84710263b271e6f8 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-15 02:03:51 |
| Source code size: | 433 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 432 / 547 |
| Referenced in: | [show references] |