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

9
LINES

< > BotCompany Repo | #1033969 // test_CalculatedFieldIndexedList (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7177L/42K).

svoid test_CalculatedFieldIndexedList() {
  CalculatedFieldIndexedList<GOperator, S> operators = new(o -> o.name);
  GOperator<Class> iround = new GOperator<Class>("iround");
  GOperator<Class> bla = new GOperator<Class>("bla");
  addAll(operators, iround, bla);
  assertSameVerbose(iround, operators.getByKey("iround"));
  assertSameVerbose(bla, operators.getByKey("bla"));
  assertNullVerbose(operators.getByKey("what"));
}

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: 135 / 200
Referenced in: [show references]