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

16
LINES

< > BotCompany Repo | #1009418 // SetInConcept

JavaX fragment (include)

1  
sclass SetInConcept<E> extends CollectionInConcept<E> implements Set<E> {
2  
  *() {} // for persistence
3  
  *(Set<E> set, Concept cc) {
4  
    super(set, cc);
5  
  }
6  
  
7  
  public boolean equals(Object o) {
8  
      if (this == o)
9  
          return true;
10  
      synchronized (this) {return c.equals(o);}
11  
  }
12  
  
13  
  public int hashCode() {
14  
      synchronized (this) {return c.hashCode();}
15  
  }
16  
}

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: 464 / 1648
Referenced in: [show references]