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

16
LINES

< > BotCompany Repo | #1009418 // SetInConcept

JavaX fragment (include)

sclass SetInConcept<E> extends CollectionInConcept<E> implements Set<E> {
  *() {} // for persistence
  *(Set<E> set, Concept cc) {
    super(set, cc);
  }
  
  public boolean equals(Object o) {
      if (this == o)
          return true;
      synchronized (this) {return c.equals(o);}
  }
  
  public int hashCode() {
      synchronized (this) {return c.hashCode();}
  }
}

Author comment

Began life as a copy of #1009406

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, imzmzdywqqli, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009418
Snippet name: SetInConcept
Eternal ID of this version: #1009418/1
Text MD5: 0679610824ccb02ae51b846dfa46c5c7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-31 22:23:41
Source code size: 389 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 465 / 1649
Referenced in: #1009419 - SynchronizedSet
#1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)