Libraryless. Click here for Pure Java version (154L/2K).
static persistable class SynchronizedSet<E> extends SynchronizedCollection<E> implements Set<E> { SynchronizedSet(Set<E> s) { super(s); } SynchronizedSet(Set<E> s, Object mutex) { super(s, mutex); } public boolean equals(Object o) { if (this == o) return true; synchronized (mutex) {return c.equals(o);} } public int hashCode() { synchronized (mutex) {return c.hashCode();} } }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031167 |
Snippet name: | SynchronizedSet [JDK-derived version] |
Eternal ID of this version: | #1031167/2 |
Text MD5: | 24793f59b129cac3816098588074d7ea |
Transpilation MD5: | 1505c7c5b9b6f0bf054250f470de53b3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-05-16 17:46:56 |
Source code size: | 494 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 164 / 361 |
Version history: | 1 change(s) |
Referenced in: | [show references] |