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

3
LINES

< > BotCompany Repo | #1035060 // immutableSet - synonym of Collections.unmodifiableSet

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

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

static <A> Set<A> immutableSet(Set<A> set) {
  ret Collections.unmodifiableSet(set);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035060
Snippet name: immutableSet - synonym of Collections.unmodifiableSet
Eternal ID of this version: #1035060/1
Text MD5: ed4869b2fbd30a2a369e4cbe2c68b82c
Transpilation MD5: 45beee52101e8dc4d501c6ba1b5eb9f9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-28 01:46:22
Source code size: 88 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 134 / 186
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1035061 - immutableMap - synonym of Collections.unmodifiableMap