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

5
LINES

< > BotCompany Repo | #1027808 // navigableSet_find

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

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

static <A> A navigableSet_find(NavigableSet<A> set, A a) {
  if (set == null || a == null) null;
  A b = set.floor(a);
  ret b != null && sortedSet_compare(set, a, b) == 0 ? b : null;
}

Author comment

Began life as a copy of #1027806

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027808
Snippet name: navigableSet_find
Eternal ID of this version: #1027808/2
Text MD5: 6364bb2fd5e6f09bc59aaf1103d648c3
Transpilation MD5: 1d954e9ad115a967f94c1dc831609ea7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-19 10:13:35
Source code size: 189 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 151 / 247
Version history: 1 change(s)
Referenced in: [show references]