Warning: session_start(): open(/var/lib/php/sessions/sess_vpk436i0vjf4t64eikoqus0in2, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
floorValue - value of floorEntry [1033270]

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

5
LINES

< > BotCompany Repo | #1033270 // floorValue - value of floorEntry

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

Libraryless. Click here for Pure Java version (30L/1K).

static <A, B> B floorValue(NavigableMap<A, B> map, A key) {
  if (map == null) null;
  var e = map.floorEntry(key);
  ret e == null ?: e.getValue();
}

Author comment

Began life as a copy of #1008021

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033270
Snippet name: floorValue - value of floorEntry
Eternal ID of this version: #1033270/2
Text MD5: 3f8853aa86ba1db6029e477d7065a51b
Transpilation MD5: 80152c34dd97125ae16752200ba881db
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-18 03:53:10
Source code size: 154 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 525 / 661
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033272 - higherValue - value of higherEntry
#1033282 - floorKey
#1033283 - floorPair