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


< > BotCompany Repo | #1002042 - keys function

JavaX fragment (include)

static <A, B> Set<A> keys(Map<A, B> map) {
  ret map == null ? new HashSet : map.keySet();

static Set keys(O map) {
  ret keys((Map) map);

ifclass MultiSet
  static <A> Set<A> keys(MultiSet<A> ms) {
    ret ms.keySet();

ifclass MultiMap
  static <A, B> Set<A> keys(MultiMap<A, B> mm) {
    ret mm.keySet();

ifclass MultiSetMap
  static <A, B> Set<A> keys(MultiSetMap<A, B> mm) {
    ret mm.keySet();

ifclass SmallestListMultiMap
  static <A, B> Set<A> keys(SmallestListMultiMap<A, B> mm) {
    ret mm.keySet();

download  show line numbers  debug dex   

Travelled to 14 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, dpqxeycirhfy, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, podlckwnjdmb, tslmcundralx, tvejysmllsmz, whxojlpjdney, yanjaxplzisb

No comments. add comment

Snippet ID: #1002042
Snippet name: keys function
Eternal ID of this version: #1002042/6
Text MD5: bd9f91b3be2da7b9a9db55a672214571
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-13 12:29:35
Source code size: 589 bytes / 31 lines
Pitched / IR pitched: No / No
Views / Downloads: 457 / 2576
Version history: 5 change(s)
Referenced in: [show references]

Formerly at &